diff --git a/ghost/admin/app/controllers/editor/new.js b/ghost/admin/app/controllers/editor/new.js index ce48087cf0..a463731c11 100644 --- a/ghost/admin/app/controllers/editor/new.js +++ b/ghost/admin/app/controllers/editor/new.js @@ -2,6 +2,8 @@ import Ember from 'ember'; import EditorControllerMixin from 'ghost/mixins/editor-base-controller'; var EditorNewController = Ember.Controller.extend(EditorControllerMixin, { + // Overriding autoSave on the base controller, as the new controller shouldn't be autosaving + autoSave: Ember.K, actions: { /** * Redirect to editor after the first save diff --git a/ghost/admin/app/mixins/editor-base-controller.js b/ghost/admin/app/mixins/editor-base-controller.js index 8585b6075e..28f91da2d3 100644 --- a/ghost/admin/app/mixins/editor-base-controller.js +++ b/ghost/admin/app/mixins/editor-base-controller.js @@ -31,26 +31,9 @@ EditorControllerMixin = Ember.Mixin.create({ return self.get('isDirty') ? self.unloadDirtyMessage() : null; }; }, - lastModelId: null, - modelChanged: Ember.computed('model.id', function (key, value) { - var modelId = this.get('model.id'); - - if (arguments.length > 1) { - return value; - } - - if (this.get('lastModelId') === modelId) { - return false; - } - - this.set('lastModelId', modelId); - return true; - }), autoSave: function () { // Don't save just because we swapped out models - if (this.get('modelChanged')) { - this.set('modelChanged', false); - } else if (this.get('model.isDraft') && !this.get('model.isNew')) { + if (this.get('model.isDraft') && !this.get('model.isNew')) { var autoSaveId, timedSaveId;