From ef432902ce997d746a9822bc29516f30eb3e5799 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 9 Dec 2013 14:48:32 -0500 Subject: [PATCH] Missing percentage. CANADIAN SORRY! --- .../javascripts/discourse/controllers/topic_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/topic_controller.js b/app/assets/javascripts/discourse/controllers/topic_controller.js index 8fb34a5602..b02d367cce 100644 --- a/app/assets/javascripts/discourse/controllers/topic_controller.js +++ b/app/assets/javascripts/discourse/controllers/topic_controller.js @@ -275,9 +275,9 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected streamPercentage: function() { if (!this.get('postStream.loaded')) { return 0; } if (this.get('postStream.highest_post_number') === 0) { return 0; } - var perc = this.get('progressPosition') / this.get('filteredPostsCount'); + var perc = this.get('progressPosition') / this.get('postStream.filteredPostsCount'); return (perc > 1.0) ? 1.0 : perc; - }.property('postStream.loaded', 'progressPosition', 'filteredPostsCount'), + }.property('postStream.loaded', 'progressPosition', 'postStream.filteredPostsCount'), multiSelectChanged: function() { // Deselect all posts when multi select is turned off