Autofocus login and password interstitial input boxes.

This commit is contained in:
Max Goodman
2012-04-30 16:15:14 -07:00
parent 896dcd0549
commit a5d4faf257
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@
<li>
<label for="user_${op}">${_('username')}:</label>
<input value="${user}" name="user" id="user_${op}"
type="text" maxlength="20" tabindex="${tabindex}"/>
type="text" maxlength="20" tabindex="${tabindex}" autofocus />
%if register:
${error_field("BAD_USERNAME", "user", kind="span")}
${error_field("USERNAME_TAKEN", "user", kind="span")}

View File

@@ -17,7 +17,7 @@
% if thing.dest:
<input type="hidden" name="dest" value="${thing.dest}" />
% endif
<input type="password" name="password" tabindex="1" />
<input type="password" name="password" tabindex="1" autofocus />
${error_field("WRONG_PASSWORD", "password")}
</%utils:round_field>