mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 09:34:32 +08:00
New 'topic:current-post-changed' application event
This commit is contained in:
parent
125cc356f3
commit
4c306f9f49
@ -230,6 +230,8 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
|||||||
|
|
||||||
this.send('postChangedRoute', postNumber);
|
this.send('postChangedRoute', postNumber);
|
||||||
this._progressIndex = topic.get('postStream').progressIndexOfPost(post);
|
this._progressIndex = topic.get('postStream').progressIndexOfPost(post);
|
||||||
|
|
||||||
|
this.appEvents.trigger('topic:current-post-changed', { post });
|
||||||
},
|
},
|
||||||
|
|
||||||
currentPostScrolled(event) {
|
currentPostScrolled(event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user