mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Clicking the logo was not scrolling to the top
This commit is contained in:
parent
22af3fe085
commit
721472dab4
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue