From 728f39df2a52076030239b4d0dbdc308d3468617 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 1 Feb 2006 16:41:10 +0100 Subject: [PATCH] set focus to search or first field darcs-hash:20060201154110-6e07b-37343bab8ba6985bb28324f88f5a64065327930c.gz --- js/gui.js | 5 +++++ templates/entry_edit.tpl | 2 +- templates/filter.tpl | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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 @@