0
Fork 0
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:
Jason Williams 2014-09-24 00:06:07 -05:00
commit 489f93206c

View file

@ -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());