phpBB

Code Changes

File: styles/prosilver/template/ajax.js

  Unmodified   Added   Modified   Removed
Line 199Line 199
 */
phpbb.addAjaxCallback('vote_poll', function(res) {
if (typeof res.success !== 'undefined') {

 */
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;

		var panel = poll.find('.panel');
var resultsVisible = poll.find('dl:first-child .resultbar').is(':visible');
var mostVotes = 0;