Skip to content

Node.js based forum software built for the modern web

fixes jumping to top on vote

barisusaklib470a9b2640d
diff --git a/public/src/forum/topic/postTools.js b/public/src/forum/topic/postTools.js
index 5a6aba3c04..f693ef64f4 100644
--- a/public/src/forum/topic/postTools.js
+++ b/public/src/forum/topic/postTools.js
@@ -34,11 +34,11 @@ define(['composer'], function(composer) {
});
postContainer.on('click', '.upvote', function() {
- toggleVote($(this), '.upvoted', 'posts.upvote');
+ return toggleVote($(this), '.upvoted', 'posts.upvote');
});
postContainer.on('click', '.downvote', function() {
- toggleVote($(this), '.downvoted', 'posts.downvote');
+ return toggleVote($(this), '.downvoted', 'posts.downvote');
});
postContainer.on('click', '.flag', function() {