mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Fix leave modal when leaving new post
no ref - set titleScratch to empty string if unset
This commit is contained in:
parent
e8147fe666
commit
f32171f3fc
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) {
|
||||
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…
Add table
Reference in a new issue