mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #4129 from halfdan/fix-leave-modal
Fix leave modal when leaving new post
This commit is contained in:
commit
489f93206c
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ var EditorNewRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, base
|
||||||
setupController: function (controller, model) {
|
setupController: function (controller, model) {
|
||||||
this._super(controller, model);
|
this._super(controller, model);
|
||||||
controller.set('scratch', '');
|
controller.set('scratch', '');
|
||||||
|
controller.set('titleScratch', '');
|
||||||
|
|
||||||
// used to check if anything has changed in the editor
|
// used to check if anything has changed in the editor
|
||||||
controller.set('previousTagNames', Ember.A());
|
controller.set('previousTagNames', Ember.A());
|
||||||
|
|
Loading…
Add table
Reference in a new issue