Merge pull request #5366 from kasimi/ticket/15799

[ticket/15799] Find correct poll for voting animation
This commit is contained in:
Marc Alexander 2018-10-09 14:25:12 +02:00
commit 6a6c1b0463

View file

@ -199,7 +199,7 @@ phpbb.addAjaxCallback('zebra', function(res) {
*/
phpbb.addAjaxCallback('vote_poll', function(res) {
if (typeof res.success !== 'undefined') {
var poll = $('.topic_poll');
var poll = $(this).closest('.topic_poll');
var panel = poll.find('.panel');
var resultsVisible = poll.find('dl:first-child .resultbar').is(':visible');
var mostVotes = 0;