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:
parent
d0a6dd88df
commit
458f6424ff
|
@ -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() {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue