FIX: Home logo wasn't scrolling to top if on second page of topic

results.
This commit is contained in:
Robin Ward 2014-07-25 17:02:19 -04:00
parent fcaeb885e5
commit 227ca5dd23
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ export default Ember.Component.extend({
// When you click the logo, never use a cached list // When you click the logo, never use a cached list
var session = Discourse.Session.current(); var session = Discourse.Session.current();
session.setProperties({topicList: null, topicListScrollPos: null}); session.setProperties({topicList: null, topicListScrollPosition: null});
Discourse.URL.routeTo('/'); Discourse.URL.routeTo('/');
return false; return false;

View File

@ -8,7 +8,6 @@
**/ **/
function finderFor(filter, params) { function finderFor(filter, params) {
return function() { return function() {
var url = Discourse.getURL("/") + filter + ".json"; var url = Discourse.getURL("/") + filter + ".json";
@ -209,7 +208,7 @@ Discourse.TopicList.reopenClass({
list.set('loaded', true); list.set('loaded', true);
return Ember.RSVP.resolve(list); return Ember.RSVP.resolve(list);
} }
session.setProperties({topicList: null, topicListScrollPos: null}); session.setProperties({topicList: null, topicListScrollPosition: null});
var findParams = {}; var findParams = {};
Discourse.SiteSettings.top_menu.split('|').forEach(function (i) { Discourse.SiteSettings.top_menu.split('|').forEach(function (i) {