FIX: Can't login with enter key.

This commit is contained in:
Guo Xiang Tan 2016-11-16 11:52:57 +08:00
parent 10068f86b6
commit 8471289831
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export default Ember.Component.extend({
this.set('loginName', $.cookie('email'));
}
Ember.run.schedule('afterRender', function() {
Ember.run.schedule('afterRender', () => {
$('#login-account-password, #login-account-name').keydown(e => {
if (e.keyCode === 13) {
this.sendAction();