diff options
author | PayBas <contact@paybas.com> | 2014-04-06 22:18:52 +0200 |
---|---|---|
committer | PayBas <contact@paybas.com> | 2014-04-06 22:18:52 +0200 |
commit | b64c5f84abf64a040b5d81b1ab7a214676039c19 (patch) | |
tree | ee8b35ea175069ce72e4e84fd57d7f07bcf781c9 /phpBB/styles/prosilver/template/ajax.js | |
parent | 3384e87b6f1f6ba3532257585392a8b7e1034a18 (diff) | |
download | forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar.gz forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar.bz2 forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.tar.xz forums-b64c5f84abf64a040b5d81b1ab7a214676039c19.zip |
[ticket/12363] changed _winner_ to _most-votes_
PHPBB3-12363
Diffstat (limited to 'phpBB/styles/prosilver/template/ajax.js')
-rw-r--r-- | phpBB/styles/prosilver/template/ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 2a96c6090c..97f7f7c9b4 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -244,12 +244,12 @@ phpbb.addAjaxCallback('vote_poll', function(res) { var option = $(this); var option_id = option.attr('data-poll-option-id'); var voted = (typeof res.user_votes[option_id] !== 'undefined') ? true : false; - var winner = (res.vote_counts[option_id] == most_votes) ? true : false; + var most_votes = (res.vote_counts[option_id] == most_votes) ? true : false; var percent = (!res.total_votes) ? 0 : Math.round((res.vote_counts[option_id] / res.total_votes) * 100); var percent_rel = (most_votes == 0) ? 0 : Math.round((res.vote_counts[option_id] / most_votes) * 100); option.toggleClass('voted', voted); - option.toggleClass('winner', winner); + option.toggleClass('most-votes', most_votes); // Update the bars var bar = option.find('.resultbar div'); |