mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Fix leave modal when leaving new post
no ref - set titleScratch to empty string if unset
This commit is contained in:
parent
a41c17936c
commit
918783a8ce
@ -15,6 +15,7 @@ var EditorNewRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, base
|
||||
setupController: function (controller, model) {
|
||||
this._super(controller, model);
|
||||
controller.set('scratch', '');
|
||||
controller.set('titleScratch', '');
|
||||
|
||||
// used to check if anything has changed in the editor
|
||||
controller.set('previousTagNames', Ember.A());
|
||||
|
Loading…
Reference in New Issue
Block a user