mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 23:54:41 +08:00
Update poll when title is changed.
This commit is contained in:
@ -7,6 +7,10 @@ var Poll = Discourse.Model.extend({
|
|||||||
this.updateFromJson(this.get('post.poll_details'));
|
this.updateFromJson(this.get('post.poll_details'));
|
||||||
}.observes('post.poll_details'),
|
}.observes('post.poll_details'),
|
||||||
|
|
||||||
|
fetchNewPostDetails: function() {
|
||||||
|
this.get('post.topic.postStream').triggerChangedPost(this.get('post.id'), this.get('post.topic.updated_at'));
|
||||||
|
}.observes('post.topic.title'),
|
||||||
|
|
||||||
updateFromJson: function(json) {
|
updateFromJson: function(json) {
|
||||||
var selectedOption = json["selected"];
|
var selectedOption = json["selected"];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user