Skip to content

Commit 487788b

Browse files
committed
correct missing progress bar on navigation to new topic.
1 parent 7546a29 commit 487788b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/assets/javascripts/discourse/views/topic_view.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
2525
}.observes('controller.streamPercentage'),
2626

2727
updateProgressBar: function() {
28-
var $topicProgress = this.topicProgress;
28+
var $topicProgress = this._topicProgress;
2929

3030
// cache lookup
3131
if (!$topicProgress) {
3232
$topicProgress = $('#topic-progress');
3333
if (!$topicProgress.length) {
3434
return;
3535
}
36-
this.topicProgress = $topicProgress;
36+
this._topicProgress = $topicProgress;
3737
}
3838

3939
// speeds up stuff, bypass jquery slowness and extra checks
@@ -88,6 +88,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
8888
}.observes('composer'),
8989

9090
enteredTopic: function() {
91+
this._topicProgress = undefined;
9192
if (this.present('controller.enteredAt')) {
9293
var topicView = this;
9394
Em.run.schedule('afterRender', function() {

0 commit comments

Comments
 (0)