2
0
Fork 0
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:
Guo Xiang Tan 2018-07-13 16:16:39 +08:00
parent 9647a0a4bc
commit b459a589ab

View file

@ -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() {