0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #4303 from ErisDS/pr-4259

Autosave additions
This commit is contained in:
John O'Nolan 2014-10-17 23:59:19 +02:00
commit 8da76215ed
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);
}