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'),
|
}.observes('controller.streamPercentage'),
|
||||||
|
|
||||||
updateProgressBar: function() {
|
updateProgressBar: function() {
|
||||||
var $topicProgress = this.topicProgress;
|
var $topicProgress = this._topicProgress;
|
||||||
|
|
||||||
// cache lookup
|
// cache lookup
|
||||||
if (!$topicProgress) {
|
if (!$topicProgress) {
|
||||||
|
@ -33,7 +33,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||||
if (!$topicProgress.length) {
|
if (!$topicProgress.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.topicProgress = $topicProgress;
|
this._topicProgress = $topicProgress;
|
||||||
}
|
}
|
||||||
|
|
||||||
// speeds up stuff, bypass jquery slowness and extra checks
|
// speeds up stuff, bypass jquery slowness and extra checks
|
||||||
|
@ -88,6 +88,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||||
}.observes('composer'),
|
}.observes('composer'),
|
||||||
|
|
||||||
enteredTopic: function() {
|
enteredTopic: function() {
|
||||||
|
this._topicProgress = undefined;
|
||||||
if (this.present('controller.enteredAt')) {
|
if (this.present('controller.enteredAt')) {
|
||||||
var topicView = this;
|
var topicView = this;
|
||||||
Em.run.schedule('afterRender', function() {
|
Em.run.schedule('afterRender', function() {
|
||||||
|
|
Loading…
Reference in New Issue