mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
correct missing progress bar on navigation to new topic.
This commit is contained in:
parent
7546a29d10
commit
487788b65b
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user