Autosave additions

issue #4259, issue #1413

- decrease timeout by 1 sec
- really actually turn off nprogress
This commit is contained in:
Hannah Wolfe 2014-10-17 18:29:25 +02:00
parent a9fb2af7ea
commit af4e1809e8
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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);
}