mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-22 11:26:33 -04:00
fix login button disabled when autofilled #6428
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
37729269ba
commit
ec7505987d
@ -574,11 +574,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function validateLogin(box, e) {
|
function validateLogin(box, e) {
|
||||||
|
setTimeout(function(){
|
||||||
var ok = ((Q('username').value.length > 0) && (Q('username').value.indexOf(' ') == -1) && (Q('password').value.length > 0));
|
var ok = ((Q('username').value.length > 0) && (Q('username').value.indexOf(' ') == -1) && (Q('password').value.length > 0));
|
||||||
QE('loginButton', ok);
|
QE('loginButton', ok);
|
||||||
setDialogMode(0);
|
setDialogMode(0);
|
||||||
if ((e != null) && (e.keyCode == 13)) { if (box == 1) { Q('password').focus(); } else if (box == 2) { Q('loginButton').click(); } }
|
if ((e != null) && (e.keyCode == 13)) { if (box == 1) { Q('password').focus(); } else if (box == 2) { Q('loginButton').click(); } }
|
||||||
if (e != null) { haltEvent(e); }
|
if (e != null) { haltEvent(e); }
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function validateCreate(box,e) {
|
function validateCreate(box,e) {
|
||||||
|
@ -662,11 +662,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function validateLogin(box, e) {
|
function validateLogin(box, e) {
|
||||||
|
setTimeout(function(){
|
||||||
var ok = ((Q('username').value.length > 0) && (Q('username').value.indexOf(' ') == -1) && (Q('password').value.length > 0));
|
var ok = ((Q('username').value.length > 0) && (Q('username').value.indexOf(' ') == -1) && (Q('password').value.length > 0));
|
||||||
QE('loginButton', ok);
|
QE('loginButton', ok);
|
||||||
setDialogMode(0);
|
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) && (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); }
|
if (e != null) { haltEvent(e); }
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function validateCreate(box, e) {
|
function validateCreate(box, e) {
|
||||||
|
@ -773,6 +773,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function validateLogin(box, e) {
|
function validateLogin(box, e) {
|
||||||
|
setTimeout(function(){
|
||||||
var ok = ((Q('username').value.length > 0) && (Q('username').value.indexOf(' ') == -1) && (Q('password').value.length > 0));
|
var ok = ((Q('username').value.length > 0) && (Q('username').value.indexOf(' ') == -1) && (Q('password').value.length > 0));
|
||||||
QE('loginButton', ok);
|
QE('loginButton', ok);
|
||||||
setDialogMode(0);
|
setDialogMode(0);
|
||||||
@ -781,6 +782,7 @@
|
|||||||
else if ((box == 2) && (Q('password').value != '')) { Q('loginButton').click(); }
|
else if ((box == 2) && (Q('password').value != '')) { Q('loginButton').click(); }
|
||||||
}
|
}
|
||||||
if (e != null) { haltEvent(e); }
|
if (e != null) { haltEvent(e); }
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
function validateCreate(box, e) {
|
function validateCreate(box, e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user