mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
FIX: weird scroll position on visiting a topic page for the first time (chrome OS X, maybe mobile safari too)
This commit is contained in:
parent
8ea1a1069e
commit
e52f6e0f6d
@ -253,6 +253,8 @@ Discourse.PostStream = Em.Object.extend({
|
|||||||
|
|
||||||
if (opts.nearPost) {
|
if (opts.nearPost) {
|
||||||
Discourse.TopicView.jumpToPost(topic.get('id'), opts.nearPost);
|
Discourse.TopicView.jumpToPost(topic.get('id'), opts.nearPost);
|
||||||
|
} else {
|
||||||
|
Discourse.TopicView.jumpToPost(topic.get('id'), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
Discourse.URL.set('queryParams', postStream.get('streamFilters'));
|
Discourse.URL.set('queryParams', postStream.get('streamFilters'));
|
||||||
|
Loading…
Reference in New Issue
Block a user