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:
parent
8e17efeac9
commit
f95a3d349d
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue