mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05: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
47a2cd03ce
commit
606d01b600
3 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue