0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Post settings menu success notifications

closes #786
This commit is contained in:
Hannah Wolfe 2013-09-18 01:46:10 +01:00
parent 092ee2e6e7
commit a18f5e7181

View file

@ -64,6 +64,11 @@
success : function (model, response, options) {
// Repopulate slug in case it changed on the server (e.g. 'new-slug-2')
slugEl.value = model.get('slug');
Ghost.notifications.addItem({
type: 'success',
message: "Permalink successfully changed to <strong>" + model.get('slug') + '</strong>.',
status: 'passive'
});
},
error : function (model, xhr) {
Ghost.notifications.addItem({
@ -117,6 +122,11 @@
}, {
success : function (model, response, options) {
pubDateEl.value = moment(model.get('published_at')).format("DD MMM YY");
Ghost.notifications.addItem({
type: 'success',
message: "Publish date successfully changed to <strong>" + pubDateEl.value + '</strong>.',
status: 'passive'
});
},
error : function (model, xhr) {
Ghost.notifications.addItem({