Revert "BUGFIX: notifying on new topics when topic list is not visible"

Was causing load more topics not to show up

This reverts commit f7bf4b2dc3.
This commit is contained in:
Sam 2014-02-03 19:23:07 +11:00
parent d0a6dd88df
commit 458f6424ff
2 changed files with 1 additions and 11 deletions

View File

@ -54,9 +54,7 @@ Discourse.DiscoveryTopicsController = Discourse.DiscoveryController.extend({
daily: Em.computed.equal('period', 'daily'),
updateTitle: function(){
if(this.get('enableTitleUpdate')) {
Discourse.notifyTitle(this.get('topicTrackingState.incomingCount'));
}
Discourse.notifyTitle(this.get('topicTrackingState.incomingCount'));
}.observes('topicTrackingState.incomingCount'),
footerMessage: function() {

View File

@ -31,14 +31,6 @@ Discourse.DiscoveryTopicsView = Discourse.View.extend(Discourse.LoadMore, {
}
},
didInsertElement: function() {
this.set('controller.enableTitleUpdate', true);
},
willDestroyElement: function() {
this.set('controller.enableTitleUpdate', false);
},
// Remember where we were scrolled to
saveScrollPosition: function() {
Discourse.Session.current().set('topicListScrollPosition', $(window).scrollTop());