mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 00:52:51 +08:00
New 'topic:current-post-changed' application event
This commit is contained in:
@ -230,6 +230,8 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
||||
|
||||
this.send('postChangedRoute', postNumber);
|
||||
this._progressIndex = topic.get('postStream').progressIndexOfPost(post);
|
||||
|
||||
this.appEvents.trigger('topic:current-post-changed', { post });
|
||||
},
|
||||
|
||||
currentPostScrolled(event) {
|
||||
|
Reference in New Issue
Block a user