FIX: Home logo wasn't scrolling to top if on second page of topic
results.
This commit is contained in:
parent
fcaeb885e5
commit
227ca5dd23
|
@ -26,7 +26,7 @@ export default Ember.Component.extend({
|
|||
|
||||
// When you click the logo, never use a cached list
|
||||
var session = Discourse.Session.current();
|
||||
session.setProperties({topicList: null, topicListScrollPos: null});
|
||||
session.setProperties({topicList: null, topicListScrollPosition: null});
|
||||
|
||||
Discourse.URL.routeTo('/');
|
||||
return false;
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
**/
|
||||
|
||||
function finderFor(filter, params) {
|
||||
|
||||
return function() {
|
||||
var url = Discourse.getURL("/") + filter + ".json";
|
||||
|
||||
|
@ -209,7 +208,7 @@ Discourse.TopicList.reopenClass({
|
|||
list.set('loaded', true);
|
||||
return Ember.RSVP.resolve(list);
|
||||
}
|
||||
session.setProperties({topicList: null, topicListScrollPos: null});
|
||||
session.setProperties({topicList: null, topicListScrollPosition: null});
|
||||
|
||||
var findParams = {};
|
||||
Discourse.SiteSettings.top_menu.split('|').forEach(function (i) {
|
||||
|
|
Loading…
Reference in New Issue