diff --git a/views/login-mobile.handlebars b/views/login-mobile.handlebars index 24f80c62..fc38a02e 100644 --- a/views/login-mobile.handlebars +++ b/views/login-mobile.handlebars @@ -63,11 +63,11 @@
Username: | -+ | ||||||||
Password: | -+ | ||||||||
@@ -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; diff --git a/views/login.handlebars b/views/login.handlebars index edbda542..2e8458f6 100644 --- a/views/login.handlebars +++ b/views/login.handlebars @@ -55,11 +55,11 @@ |
Username: | -+ | |
Password: | -+ | |
@@ -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; diff --git a/views/login2.handlebars b/views/login2.handlebars index 8c6bdc32..a83c1c50 100644 --- a/views/login2.handlebars +++ b/views/login2.handlebars @@ -69,12 +69,12 @@ |
- + |
- + |