mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
Autosave additions
issue #4259, issue #1413 - decrease timeout by 1 sec - really actually turn off nprogress
This commit is contained in:
parent
a9fb2af7ea
commit
af4e1809e8
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user