Pressing enter in username field of login form will submit the form

This commit is contained in:
Neil Lalonde 2013-10-09 11:07:42 -04:00
parent 24598c80af
commit 4a0b17bb16
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ Discourse.LoginView = Discourse.ModalBodyView.extend({
Em.run.schedule('afterRender', function() {
$('#login-account-password').keydown(function(e) {
$('#login-account-password, #login-account-name').keydown(function(e) {
if (e.keyCode === 13) {
loginController.login();
}