mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 07:53:43 +08:00
Pressing enter in username field of login form will submit the form
This commit is contained in:
parent
24598c80af
commit
4a0b17bb16
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user