projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-core: autofocus password field in login form
[project/luci.git]
/
modules
/
admin-core
/
luasrc
/
view
/
sysauth.htm
diff --git
a/modules/admin-core/luasrc/view/sysauth.htm
b/modules/admin-core/luasrc/view/sysauth.htm
index
bb5d025
..
8c4b19c
100644
(file)
--- a/
modules/admin-core/luasrc/view/sysauth.htm
+++ b/
modules/admin-core/luasrc/view/sysauth.htm
@@
-1,7
+1,7
@@
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
-Copyright 2008
Jo-Philipp Wich <xm@leipzig.freifunk.net
>
+Copyright 2008
-2012 Jo-Philipp Wich <xm@subsignal.org
>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@
-35,7
+35,7
@@
$Id$
<div class="cbi-value cbi-value-last">
<label class="cbi-value-title"><%:Password%></label>
<div class="cbi-value-field">
<div class="cbi-value cbi-value-last">
<label class="cbi-value-title"><%:Password%></label>
<div class="cbi-value-field">
- <input class="cbi-input-password" type="password" name="password" />
+ <input
id="focus_password"
class="cbi-input-password" type="password" name="password" />
</div>
</div>
</fieldset></fieldset>
</div>
</div>
</fieldset></fieldset>
@@
-46,4
+46,9
@@
$Id$
<input type="reset" value="<%:Reset%>" class="cbi-button cbi-button-reset" />
</div>
</form>
<input type="reset" value="<%:Reset%>" class="cbi-button cbi-button-reset" />
</div>
</form>
+<script type="text/javascript">//<![CDATA[
+ var input = document.getElementById('focus_password');
+ if (input)
+ input.focus();
+//]]></script>
<%+footer%>
<%+footer%>