v1.18.x
Barış Soner Uşaklı 7 years ago
parent 96f55c528e
commit 221f9848d2

@ -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, {

Loading…
Cancel
Save