Fix bug where new posts wouldn't load after hitting the bottom if you'd filtered

This commit is contained in:
Robin Ward 2013-03-23 11:18:38 -04:00
parent 842760e50e
commit 030ecfaa71
2 changed files with 2 additions and 1 deletions
app/assets/javascripts/discourse

@ -216,6 +216,7 @@ Discourse.TopicController = Discourse.ObjectController.extend({
topicController.updateBottomBar(); topicController.updateBottomBar();
topicController.set('loadingBelow', false); topicController.set('loadingBelow', false);
topicController.set('seenBottom', false);
}); });
}.observes('postFilters'), }.observes('postFilters'),

@ -19,7 +19,7 @@ Discourse.TopicBestOfRoute = Discourse.Route.extend({
this.modelFor('topic').loadPosts(params); this.modelFor('topic').loadPosts(params);
// After we load, show the bottom bar // After we load, show the bottom bar
//Em.run.next(function () { topicController.updateBottomBar(); }) Em.run.next(function () { topicController.updateBottomBar(); })
} }
}); });