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
var session = Discourse.Session.current();
session.setProperties({topicList: null, topicListScrollPos: null});
session.setProperties({topicList: null, topicListScrollPosition: null});
Discourse.URL.routeTo('/');
return false;

View File

@ -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) {