From 487788b65b954b5291cca20941466082e478b111 Mon Sep 17 00:00:00 2001 From: Sam <sam.saffron@gmail.com> Date: Wed, 21 Aug 2013 08:37:30 +1000 Subject: [PATCH] correct missing progress bar on navigation to new topic. --- app/assets/javascripts/discourse/views/topic_view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/views/topic_view.js b/app/assets/javascripts/discourse/views/topic_view.js index daf6d6af59a..a4f885d53fa 100644 --- a/app/assets/javascripts/discourse/views/topic_view.js +++ b/app/assets/javascripts/discourse/views/topic_view.js @@ -25,7 +25,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, { }.observes('controller.streamPercentage'), updateProgressBar: function() { - var $topicProgress = this.topicProgress; + var $topicProgress = this._topicProgress; // cache lookup if (!$topicProgress) { @@ -33,7 +33,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, { if (!$topicProgress.length) { return; } - this.topicProgress = $topicProgress; + this._topicProgress = $topicProgress; } // speeds up stuff, bypass jquery slowness and extra checks @@ -88,6 +88,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, { }.observes('composer'), enteredTopic: function() { + this._topicProgress = undefined; if (this.present('controller.enteredAt')) { var topicView = this; Em.run.schedule('afterRender', function() {