mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 22:51:23 +02:00
[ticket/15799] Find correct poll for voting animation
PHPBB3-15799
This commit is contained in:
@@ -199,7 +199,7 @@ phpbb.addAjaxCallback('zebra', function(res) {
|
|||||||
*/
|
*/
|
||||||
phpbb.addAjaxCallback('vote_poll', function(res) {
|
phpbb.addAjaxCallback('vote_poll', function(res) {
|
||||||
if (typeof res.success !== 'undefined') {
|
if (typeof res.success !== 'undefined') {
|
||||||
var poll = $('.topic_poll');
|
var poll = $(this).closest('.topic_poll');
|
||||||
var panel = poll.find('.panel');
|
var panel = poll.find('.panel');
|
||||||
var resultsVisible = poll.find('dl:first-child .resultbar').is(':visible');
|
var resultsVisible = poll.find('dl:first-child .resultbar').is(':visible');
|
||||||
var mostVotes = 0;
|
var mostVotes = 0;
|
||||||
|
Reference in New Issue
Block a user