FIX: deprecation warning in create_account_controller.js. Need to move createAccount into actions.
This commit is contained in:
parent
7fa07f3401
commit
24d81e2364
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue