Skip to content

Node.js based forum software built for the modern web

fix so the parent button doesn't ajaxify if the post is already on the screen

barisusakli9207d6a74d3b
diff --git a/public/src/client/topic.js b/public/src/client/topic.js
index aff00909d1..5f58f38e0b 100644
--- a/public/src/client/topic.js
+++ b/public/src/client/topic.js
@@ -198,7 +198,8 @@ define('forum/topic', [
var toPost = $('[component="post"][data-pid="' + toPid + '"]');
if (toPost.length) {
e.preventDefault();
- return navigator.scrollToPost(toPost.attr('data-index'), true);
+ navigator.scrollToPost(toPost.attr('data-index'), true);
+ return false;
}
});
}