</script>
{/if}
-<div class="container containerPadding pollContainer" data-poll-id="{@$poll->pollID}" data-can-vote="{if $poll->canVote()}1{else}0{/if}" data-can-view-result="{if $poll->canSeeResult()}1{else}0{/if}" data-can-view-participants="{if $poll->canViewParticipants()}true{else}false{/if}" data-in-vote="{if $poll->canVote() && !$poll->isParticipant()}1{else}0{/if}" data-question="{$poll->question}" data-max-votes="{@$poll->maxVotes}">
+<div class="container containerPadding pollContainer" data-poll-id="{@$poll->pollID}" data-can-vote="{if $poll->canVote()}1{else}0{/if}" data-can-view-result="{if $poll->canSeeResult()}1{else}0{/if}" data-can-view-participants="{if $poll->canViewParticipants()}true{else}false{/if}" data-in-vote="{if $poll->canVote() && !$poll->isParticipant()}1{else}0{/if}" data-question="{$poll->question}" data-max-votes="{@$poll->maxVotes}" data-is-public="{if $poll->isPublic}true{else}false{/if}">
<fieldset>
<legend>{$poll->question} <span class="badge jsTooltip" title="{lang}wcf.poll.totalVotes{/lang}">{#$poll->votes}</span></legend>
<button class="small jsButtonPollShowVote">{lang}wcf.poll.button.showVote{/lang}</button>
<button class="small jsButtonPollShowResult">{lang}wcf.poll.button.showResult{/lang}</button>
{/if}
- {if $poll->canViewParticipants()}
+ {if $poll->canViewParticipants() || ($poll->canVote() && $poll->isPublic)}
<button class="small jsButtonPollShowParticipants">{lang}wcf.poll.button.showParticipants{/lang}</button>
{/if}
// display results
this._canViewResult[$pollID] = true;
this._canVote[$pollID] = (data.canVote) ? true : false;
+
+ if (this._polls[$pollID].data('isPublic')) {
+ this._canViewParticipants[$pollID] = true;
+ }
+
this._showResult(null, $pollID);
break;
}