summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-11-20 11:54:22 +0100
committerJo-Philipp Wich <jo@mein.io>2018-11-20 11:54:22 +0100
commit7a32e11e2be49b45bd8de1be700b1011341e46ce (patch)
tree08d71d5e3f3f3e32cf862355381556acb88ac481 /modules/luci-mod-system
parenta17c5808f0b72d21ecb8399da22a7a48897ed676 (diff)
luci-mod-system: submit password change on enter
Allow to submit the password change form by pressing enter in the second input field. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system')
-rw-r--r--modules/luci-mod-system/luasrc/view/admin_system/password.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-system/luasrc/view/admin_system/password.htm b/modules/luci-mod-system/luasrc/view/admin_system/password.htm
index 3aff9c981..db35fb01e 100644
--- a/modules/luci-mod-system/luasrc/view/admin_system/password.htm
+++ b/modules/luci-mod-system/luasrc/view/admin_system/password.htm
@@ -56,7 +56,7 @@
<div class="cbi-value">
<label class="cbi-value-title" for="image"><%:Confirmation%></label>
<div class="cbi-value-field">
- <input type="password" name="pw2" /><!--
+ <input type="password" name="pw2" onkeydown="if (event.keyCode === 13) submitPassword(event)" /><!--
--><button class="cbi-button cbi-button-neutral" title="<%:Reveal/hide password%>" aria-label="<%:Reveal/hide password%>" onclick="var e = this.previousElementSibling; e.type = (e.type === 'password') ? 'text' : 'password'">∗</button>
</div>
</div>