From 4c306f9f49d675fa1b9d6e9bb845700f63aaf7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 7 Aug 2017 15:56:08 +0200 Subject: [PATCH] New 'topic:current-post-changed' application event --- app/assets/javascripts/discourse/controllers/topic.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6 index a51d43fc352..929a3048f6e 100644 --- a/app/assets/javascripts/discourse/controllers/topic.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic.js.es6 @@ -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) {