Submit login form upon enter in password field, switch to password field upon enter in username field
This commit is contained in:
parent
907f5051e1
commit
ff22ab0026
1 changed files with 11 additions and 0 deletions
|
|
@ -397,6 +397,17 @@ $(function() {
|
|||
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) {
|
||||
var firstRunViewModel = new FirstRunViewModel();
|
||||
ko.applyBindings(firstRunViewModel, document.getElementById("first_run_dialog"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue