mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FIX: Posts weren't highlighting on initial load
This commit is contained in:
parent
c2da725f75
commit
848d60d459
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ export default Discourse.Route.extend({
|
||||||
progressPosition: progress,
|
progressPosition: progress,
|
||||||
expanded: false
|
expanded: false
|
||||||
});
|
});
|
||||||
self.appEvents.trigger('post:highlight', closest);
|
|
||||||
|
// Highlight our post after the next render
|
||||||
|
Ember.run.scheduleOnce('afterRender', function() {
|
||||||
|
self.appEvents.trigger('post:highlight', closest);
|
||||||
|
});
|
||||||
Discourse.URL.jumpToPost(closest);
|
Discourse.URL.jumpToPost(closest);
|
||||||
|
|
||||||
if (topic.present('draft')) {
|
if (topic.present('draft')) {
|
||||||
|
|
Loading…
Reference in a new issue