Submit login form upon enter in password field, switch to password field upon enter in username field
This commit is contained in:
1 parent
907f5051e1
commit
ff22ab0026
1 file changed
+11
@@ -397,6 +397,17 @@ $(function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#login_user").keyup(function(event) {
|
||||||
|
if (event.keyCode == 13) {
|
||||||
|
$("#login_pass").focus();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("#login_pass").keyup(function(event) {
|
||||||
|
if (event.keyCode == 13) {
|
||||||
|
$("#login_button").click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (CONFIG_FIRST_RUN) {
|
if (CONFIG_FIRST_RUN) {
|
||||||
var firstRunViewModel = new FirstRunViewModel();
|
var firstRunViewModel = new FirstRunViewModel();
|
||||||
ko.applyBindings(firstRunViewModel, document.getElementById("first_run_dialog"));
|
ko.applyBindings(firstRunViewModel, document.getElementById("first_run_dialog"));
|
||||||
|
|||||||
Reference in new issue
Block a user