From af4e1809e8c18c4a40416bce1c10046d7a34c34c 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 --- core/client/components/gh-codemirror.js | 2 +- core/client/mixins/editor-base-controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/client/components/gh-codemirror.js b/core/client/components/gh-codemirror.js index 93ffed4c1d..a739d0dd5a 100644 --- a/core/client/components/gh-codemirror.js +++ b/core/client/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/core/client/mixins/editor-base-controller.js b/core/client/mixins/editor-base-controller.js index 71ecfde164..64492c6aa4 100644 --- a/core/client/mixins/editor-base-controller.js +++ b/core/client/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); }