mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
parent
2636e1c1e3
commit
7bc4d43be7
1 changed files with 7 additions and 7 deletions
|
@ -53,7 +53,7 @@
|
|||
e.currentTarget.select();
|
||||
},
|
||||
|
||||
editSlug: function (e) {
|
||||
editSlug: _.debounce(function (e) {
|
||||
e.preventDefault();
|
||||
var self = this,
|
||||
slug = self.model.get('slug'),
|
||||
|
@ -88,9 +88,9 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
}, 500),
|
||||
|
||||
editDate: function (e) {
|
||||
editDate: _.debounce(function (e) {
|
||||
e.preventDefault();
|
||||
var self = this,
|
||||
parseDateFormats = ['DD MMM YY HH:mm', 'DD MMM YYYY HH:mm', 'DD/MM/YY HH:mm', 'DD/MM/YYYY HH:mm', 'DD-MM-YY HH:mm', 'DD-MM-YYYY HH:mm'],
|
||||
|
@ -177,11 +177,11 @@
|
|||
}
|
||||
});
|
||||
|
||||
},
|
||||
}, 500),
|
||||
|
||||
toggleStaticPage: function (e) {
|
||||
toggleStaticPage: _.debounce(function (e) {
|
||||
var pageEl = $(e.currentTarget),
|
||||
page = this.model ? !this.model.get('page') : false;
|
||||
page = pageEl.prop('checked');
|
||||
|
||||
this.model.save({
|
||||
page: page
|
||||
|
@ -204,7 +204,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
}, 500),
|
||||
|
||||
deletePost: function (e) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue