0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Reset email form value on success

closes #3663
- Set value of email input as nil string
This commit is contained in:
Jake Wright 2014-08-08 02:28:33 +01:00
parent 8e17efeac9
commit f95a3d349d

View file

@ -27,6 +27,7 @@ var ForgottenController = Ember.Controller.extend(ValidationEngine, {
}).then(function (resp) { }).then(function (resp) {
self.toggleProperty('submitting'); self.toggleProperty('submitting');
self.notifications.showSuccess('Please check your email for instructions.', {delayed: true}); self.notifications.showSuccess('Please check your email for instructions.', {delayed: true});
self.set('email', '');
self.transitionToRoute('signin'); self.transitionToRoute('signin');
}).catch(function (resp) { }).catch(function (resp) {
self.toggleProperty('submitting'); self.toggleProperty('submitting');