mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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) {
|
jumpToPost(postNumber) {
|
||||||
|
if (this.get("model.postStream.isMegaTopic")) {
|
||||||
|
this._jumpToPostNumber(postNumber);
|
||||||
|
} else {
|
||||||
const postStream = this.get("model.postStream");
|
const postStream = this.get("model.postStream");
|
||||||
let postId = postStream.findPostIdForPostNumber(postNumber);
|
let postId = postStream.findPostIdForPostNumber(postNumber);
|
||||||
|
|
||||||
|
@ -598,6 +601,7 @@ export default Ember.Controller.extend(BufferedContent, {
|
||||||
}
|
}
|
||||||
|
|
||||||
this._jumpToPostId(postId);
|
this._jumpToPostId(postId);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
jumpTop() {
|
jumpTop() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue