mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Post settings gets published_at
closes #773 - listen for change events on published_at - change all listeners in views to use this.listenTo
This commit is contained in:
parent
3971abab9d
commit
357cb9f201
@ -32,7 +32,7 @@
|
||||
self.allGhostTags = tagCollection.toJSON();
|
||||
});
|
||||
|
||||
this.model.on('willSave', this.completeCurrentTag, this);
|
||||
this.listenTo(this.model, 'willSave', this.completeCurrentTag, this);
|
||||
},
|
||||
|
||||
render: function () {
|
||||
|
@ -93,7 +93,7 @@
|
||||
self.updatePost();
|
||||
});
|
||||
this.listenTo(this.model, 'change:status', this.render);
|
||||
this.model.on('change:id', function (m) {
|
||||
this.listenTo(this.model, 'change:id', function (m) {
|
||||
Backbone.history.navigate('/editor/' + m.id + '/');
|
||||
});
|
||||
},
|
||||
|
@ -17,6 +17,7 @@
|
||||
initialize: function () {
|
||||
if (this.model) {
|
||||
this.listenTo(this.model, 'change:status', this.render);
|
||||
this.listenTo(this.model, 'change:published_at', this.render);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user