mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Move updating title count to the view, to ensure the topic list is
visible when it happens.
This commit is contained in:
parent
d2974c2a15
commit
ea9ff108c5
2 changed files with 4 additions and 4 deletions
|
@ -53,10 +53,6 @@ Discourse.DiscoveryTopicsController = Discourse.DiscoveryController.extend({
|
|||
weekly: Em.computed.equal('period', 'weekly'),
|
||||
daily: Em.computed.equal('period', 'daily'),
|
||||
|
||||
updateTitle: function(){
|
||||
Discourse.notifyTitle(this.get('topicTrackingState.incomingCount'));
|
||||
}.observes('topicTrackingState.incomingCount'),
|
||||
|
||||
footerMessage: function() {
|
||||
if (!this.get('allLoaded')) { return; }
|
||||
|
||||
|
|
|
@ -31,6 +31,10 @@ Discourse.DiscoveryTopicsView = Discourse.View.extend(Discourse.LoadMore, {
|
|||
}
|
||||
},
|
||||
|
||||
_updateTitle: function() {
|
||||
Discourse.notifyTitle(this.get('controller.topicTrackingState.incomingCount'));
|
||||
}.observes('controller.topicTrackingState.incomingCount'),
|
||||
|
||||
// Remember where we were scrolled to
|
||||
saveScrollPosition: function() {
|
||||
Discourse.Session.current().set('topicListScrollPosition', $(window).scrollTop());
|
||||
|
|
Loading…
Reference in a new issue