mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/12363] Fix typo
PHPBB3-12363
This commit is contained in:
parent
b64c5f84ab
commit
f1201a8ec5
1 changed files with 2 additions and 2 deletions
|
@ -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 most_votes = (res.vote_counts[option_id] == most_votes) ? true : false;
|
||||
var most_voted = (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('most-votes', most_votes);
|
||||
option.toggleClass('most-votes', most_voted);
|
||||
|
||||
// Update the bars
|
||||
var bar = option.find('.resultbar div');
|
||||
|
|
Loading…
Add table
Reference in a new issue