mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: jumpToPost
no working on megatopics.
This commit is contained in:
parent
9647a0a4bc
commit
b459a589ab
1 changed files with 12 additions and 8 deletions
|
@ -588,6 +588,9 @@ export default Ember.Controller.extend(BufferedContent, {
|
|||
},
|
||||
|
||||
jumpToPost(postNumber) {
|
||||
if (this.get("model.postStream.isMegaTopic")) {
|
||||
this._jumpToPostNumber(postNumber);
|
||||
} else {
|
||||
const postStream = this.get("model.postStream");
|
||||
let postId = postStream.findPostIdForPostNumber(postNumber);
|
||||
|
||||
|
@ -598,6 +601,7 @@ export default Ember.Controller.extend(BufferedContent, {
|
|||
}
|
||||
|
||||
this._jumpToPostId(postId);
|
||||
}
|
||||
},
|
||||
|
||||
jumpTop() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue