mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -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,
|
||||
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);
|
||||
|
||||
if (topic.present('draft')) {
|
||||
|
|
Loading…
Reference in a new issue