mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Clicking the logo was not scrolling to the top
This commit is contained in:
parent
22af3fe085
commit
721472dab4
@ -27,7 +27,9 @@ Discourse.DiscoveryTopicsView = Discourse.View.extend(Discourse.LoadMore, {
|
||||
|
||||
_readjustScrollPosition: function() {
|
||||
var scrollTo = Discourse.Session.currentProp('topicListScrollPosition');
|
||||
if (scrollTo) {
|
||||
if (Discourse.URL.get('router.url').indexOf('/more') === -1) { scrollTo = 0; }
|
||||
|
||||
if (typeof scrollTo !== "undefined") {
|
||||
Em.run.schedule('afterRender', function() {
|
||||
$(window).scrollTop(scrollTo);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user