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>
This commit is contained in:
parent
a17c5808f0
commit
7a32e11e2b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@
|
||||||
<div class="cbi-value">
|
<div class="cbi-value">
|
||||||
<label class="cbi-value-title" for="image"><%:Confirmation%></label>
|
<label class="cbi-value-title" for="image"><%:Confirmation%></label>
|
||||||
<div class="cbi-value-field">
|
<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>
|
--><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>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue