Merge pull request #1077 from jamesaanderson/jump-to-last-post-in-best-of-mode-fix
Jump to last post in "Best of" mode fix
This commit is contained in:
commit
1b8c9d2efd
|
@ -135,7 +135,7 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
|
|||
|
||||
jumpBottom: function() {
|
||||
if (this.get('bestOf')) {
|
||||
Discourse.TopicView.scrollTo(this.get('id'), this.get('posts').last().get('post_number'));
|
||||
Discourse.TopicView.scrollTo(this.get('id'), _.last(this.get('posts')).get('post_number'));
|
||||
} else {
|
||||
Discourse.URL.routeTo(this.get('lastPostUrl'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue