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);
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">{$lang.name}:</td>
- <td><input type="text" class="input" name="entry[name]" value="{$entry.name|escape}"></td>
+ <td><input type="text" class="input" name="entry[name]" value="{$entry.name|escape}" id="firstfield"></td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap">{$lang.givenname}:</td>
<div class="search x">
<form method="get" action="index.php" accept-charset="utf-8">
- <input type="text" name="search" class="searchfield"
+ <input type="text" name="search" class="searchfield" id="searchfield"
value="{$smarty.request.search|escape}" />
<input type="submit" value="{$lang.search}" class="searchbutton" />
</form>