From: Andreas Gohr Date: Wed, 1 Feb 2006 15:41:10 +0000 (+0100) Subject: set focus to search or first field X-Git-Tag: 0.7.1~90 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=728f39df2a52076030239b4d0dbdc308d3468617;p=contagged set focus to search or first field darcs-hash:20060201154110-6e07b-37343bab8ba6985bb28324f88f5a64065327930c.gz --- diff --git a/js/gui.js b/js/gui.js index 3d6053b..c048c99 100644 --- a/js/gui.js +++ b/js/gui.js @@ -137,6 +137,11 @@ function init(){ if($('tageditlookup') !== null) new Ajax.Autocompleter('tageditlookup','tageditresult', 'ajax.php', {paramName: 'taglookup', tokens: ','}); + if($('searchfield') !== null) + $('searchfield').focus(); + + if($('firstfield') !== null) + $('firstfield').focus(); } Event.observe(window, 'load', init, false); diff --git a/templates/entry_edit.tpl b/templates/entry_edit.tpl index 9461846..816ebdd 100644 --- a/templates/entry_edit.tpl +++ b/templates/entry_edit.tpl @@ -21,7 +21,7 @@ {$lang.name}: - + {$lang.givenname}: diff --git a/templates/filter.tpl b/templates/filter.tpl index 85cb88d..136776b 100644 --- a/templates/filter.tpl +++ b/templates/filter.tpl @@ -56,7 +56,7 @@