FIX: deprecation warning in create_account_controller.js. Need to move createAccount into actions.

This commit is contained in:
Neil Lalonde 2013-12-17 12:37:49 -05:00
parent 7fa07f3401
commit 24d81e2364
1 changed files with 27 additions and 26 deletions

View File

@ -295,6 +295,7 @@ Discourse.CreateAccountController = Discourse.Controller.extend(Discourse.ModalF
}); });
}, },
actions: {
createAccount: function() { createAccount: function() {
var createAccountController = this; var createAccountController = this;
this.set('formSubmitted', true); this.set('formSubmitted', true);
@ -323,5 +324,5 @@ Discourse.CreateAccountController = Discourse.Controller.extend(Discourse.ModalF
return createAccountController.flash(I18n.t('create_account.failed'), 'error'); return createAccountController.flash(I18n.t('create_account.failed'), 'error');
}); });
} }
}
}); });