From 221f9848d204f81b919156fab55117bb0adaa746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 9 Mar 2018 11:12:16 -0500 Subject: [PATCH] closes #6349 --- public/src/client/topic/votes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/votes.js b/public/src/client/topic/votes.js index 007fa5e6dd..ee4813d173 100644 --- a/public/src/client/topic/votes.js +++ b/public/src/client/topic/votes.js @@ -62,7 +62,7 @@ define('forum/topic/votes', ['components', 'translator', 'benchpress'], function Votes.toggleVote = function (button, className, method) { - var post = button.parents('[data-pid]'); + var post = button.closest('[data-pid]'); var currentState = post.find(className).length; socket.emit(currentState ? 'posts.unvote' : method, {