From 918783a8ce3946fff2783d928b8e329c572c1811 Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Tue, 23 Sep 2014 20:04:26 +0000 Subject: [PATCH] Fix leave modal when leaving new post no ref - set titleScratch to empty string if unset --- ghost/admin/routes/editor/new.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/routes/editor/new.js b/ghost/admin/routes/editor/new.js index 63f5ebb45a..7f0e765854 100644 --- a/ghost/admin/routes/editor/new.js +++ b/ghost/admin/routes/editor/new.js @@ -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());