restore login screen enter button use #6494
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
3f8301e9d7
commit
9ebd23a518
|
@ -63,11 +63,11 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td id=loginusername align=right width=100>Username:</td>
|
||||
<td><input id=username type=text autocomplete="username" maxlength=64 name=username required /></td>
|
||||
<td><input id=username type=text autocomplete="username" maxlength=64 name=username required onchange=validateLogin(1) onkeyup=validateLogin(1,event) /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right>Password:</td>
|
||||
<td><input id=password type=password autocomplete="current-password" maxlength=256 name=password autocomplete=off required /></td>
|
||||
<td><input id=password type=password autocomplete="current-password" maxlength=256 name=password autocomplete=off required onchange=validateLogin(2) onkeyup=validateLogin(2,event) /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div id=showPassHintLink style=display:none><a onclick=showPassHint() style="cursor:pointer">Show Hint</a></div></td>
|
||||
|
@ -572,6 +572,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
function validateLogin(box, e) {
|
||||
setTimeout(function(){
|
||||
setDialogMode(0);
|
||||
if ((e != null) && (e.keyCode == 13)) { if (box == 1) { Q('password').focus(); } else if (box == 2) { Q('loginButton').click(); } }
|
||||
if (e != null) { haltEvent(e); }
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
||||
function validateCreate(box,e) {
|
||||
setDialogMode(0);
|
||||
var ok = false;
|
||||
|
|
|
@ -55,11 +55,11 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td id=loginusername align=right width=100>Username:</td>
|
||||
<td><input id=username {{{autocomplete}}}="username" type=text maxlength=64 name=username required /></td>
|
||||
<td><input id=username {{{autocomplete}}}="username" type=text maxlength=64 name=username required onchange=validateLogin(1) onkeyup=validateLogin(1,event) /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align=right>Password:</td>
|
||||
<td><input id=password {{{autocomplete}}}="current-password" type=password maxlength=256 name=password required /></td>
|
||||
<td><input id=password {{{autocomplete}}}="current-password" type=password maxlength=256 name=password required onchange=validateLogin(2) onkeyup=validateLogin(2,event) /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div id=showPassHintLink style=display:none><a onclick="return showPassHint(event);" href="#" style="cursor:pointer">Show Hint</a></div></td>
|
||||
|
@ -660,6 +660,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
function validateLogin(box, e) {
|
||||
setTimeout(function(){
|
||||
setDialogMode(0);
|
||||
if ((e != null) && (e.keyCode == 13)) { if ((box == 1) && (Q('username').value != '')) { Q('password').focus(); } else if ((box == 2) && (Q('password').value != '')) { Q('loginButton').click(); } }
|
||||
if (e != null) { haltEvent(e); }
|
||||
}, 100);
|
||||
}
|
||||
|
||||
function validateCreate(box, e) {
|
||||
setDialogMode(0);
|
||||
var userok = false;
|
||||
|
|
|
@ -69,12 +69,12 @@
|
|||
<table style="width:100%">
|
||||
<tr>
|
||||
<td>
|
||||
<input id=username title="Username" style="box-sizing:border-box;width:280px;border:0;border-radius:4px;padding:8px;background-color:#FFF8CC" {{{autocomplete}}}="username" placeholder="Username" type=text maxlength=64 name=username required />
|
||||
<input id=username title="Username" style="box-sizing:border-box;width:280px;border:0;border-radius:4px;padding:8px;background-color:#FFF8CC" {{{autocomplete}}}="username" placeholder="Username" type=text maxlength=64 name=username required onchange=validateLogin(1) onkeyup=validateLogin(1,event) />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input id=password title="Password" style="box-sizing:border-box;width:280px;border:0;border-radius:4px;padding:8px;background-color:#FFF8CC" {{{autocomplete}}}="current-password" placeholder="Password" type=password maxlength=256 name=password required />
|
||||
<input id=password title="Password" style="box-sizing:border-box;width:280px;border:0;border-radius:4px;padding:8px;background-color:#FFF8CC" {{{autocomplete}}}="current-password" placeholder="Password" type=password maxlength=256 name=password required onchange=validateLogin(2) onkeyup=validateLogin(2,event) />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -771,6 +771,17 @@
|
|||
if (!formSubmitted) { formSubmitted = true; document.getElementById(v).submit(); }
|
||||
}
|
||||
|
||||
function validateLogin(box, e) {
|
||||
setTimeout(function(){
|
||||
setDialogMode(0);
|
||||
if ((e != null) && (e.keyCode == 13)) {
|
||||
if ((box == 1) && (Q('username').value != '')) { Q('password').focus(); }
|
||||
else if ((box == 2) && (Q('password').value != '')) { Q('loginButton').click(); }
|
||||
}
|
||||
if (e != null) { haltEvent(e); }
|
||||
}, 100);
|
||||
}
|
||||
|
||||
function validateCreate(box, e) {
|
||||
setDialogMode(0);
|
||||
var userok = false;
|
||||
|
|
Loading…
Reference in New Issue