mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:42:44 +08:00
FIX: enter key in login form works again
This commit is contained in:
parent
0ece195723
commit
3a6ba907d9
|
@ -56,7 +56,9 @@ Discourse.LoginView = Discourse.ModalBodyView.extend({
|
||||||
Em.run.schedule('afterRender', function() {
|
Em.run.schedule('afterRender', function() {
|
||||||
$('#login-account-password, #login-account-name').keydown(function(e) {
|
$('#login-account-password, #login-account-name').keydown(function(e) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
loginController.login();
|
if (!loginController.get('loginDisabled')) {
|
||||||
|
loginController.send('login');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user