mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-04 18:03:59 -04:00
Jump to last post in "Best of" mode fix
http://meta.discourse.org/t/jump-to-last-post-does-not-work-in-best-of-mode/7626/
This commit is contained in:
parent
456cff17f8
commit
c6113f6701
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
|
||||||
|
|
||||||
jumpBottom: function() {
|
jumpBottom: function() {
|
||||||
if (this.get('bestOf')) {
|
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 {
|
} else {
|
||||||
Discourse.URL.routeTo(this.get('lastPostUrl'));
|
Discourse.URL.routeTo(this.get('lastPostUrl'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue