From 3f5b0f75e2769ffb0425aa262599bcc14e1ac185 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Fri, 17 Oct 2014 18:29:25 +0200 Subject: [PATCH] Autosave additions issue #4259, issue #1413 - decrease timeout by 1 sec - really actually turn off nprogress --- ghost/admin/components/gh-codemirror.js | 2 +- ghost/admin/mixins/editor-base-controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/components/gh-codemirror.js b/ghost/admin/components/gh-codemirror.js index 93ffed4c1d..a739d0dd5a 100644 --- a/ghost/admin/components/gh-codemirror.js +++ b/ghost/admin/components/gh-codemirror.js @@ -22,7 +22,7 @@ var onChangeHandler = function (cm, changeObj) { cm.component.set('value', cm.getValue()); // Send an action notifying a 5 second pause in typing/changes. - Ember.run.debounce(component, 'sendAction', 'typingPause', 5000); + Ember.run.debounce(component, 'sendAction', 'typingPause', 3000); }; var onScrollHandler = function (cm) { diff --git a/ghost/admin/mixins/editor-base-controller.js b/ghost/admin/mixins/editor-base-controller.js index 71ecfde164..64492c6aa4 100644 --- a/ghost/admin/mixins/editor-base-controller.js +++ b/ghost/admin/mixins/editor-base-controller.js @@ -212,7 +212,7 @@ var EditorControllerMixin = Ember.Mixin.create(MarkerManager, { } this.set('title', this.get('titleScratch')); - return this.get('model').save().then(function (model) { + return this.get('model').save(options).then(function (model) { if (!options.silent) { self.showSaveNotification(prevStatus, model.get('status'), isNew ? true : false); }