mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15799] Find correct poll for voting animation
PHPBB3-15799
This commit is contained in:
parent
2769ab701a
commit
71ae82fbef
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue