Submit login form upon enter in password field, switch to password field upon enter in username field
(cherry picked from commit ff22ab0)
This commit is contained in:
parent
90e50db189
commit
0d5d28e4a6
1 changed files with 11 additions and 0 deletions
|
|
@ -366,6 +366,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