From b470a9b2640debe883037e62de27d74b443f367c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 21 Mar 2014 14:00:13 -0400 Subject: [PATCH] fixes jumping to top on vote --- public/src/forum/topic/postTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {