mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
FIX: Posts weren't highlighting on initial load
This commit is contained in:
parent
c2da725f75
commit
848d60d459
|
@ -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 New Issue
Block a user