mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:12:46 +08:00
Missing percentage. CANADIAN SORRY!
This commit is contained in:
parent
744add9ece
commit
ef432902ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user