Skip to content

Commit 8450a5c

Browse files
committed
Retain S_VOTED
1 parent b35fc36 commit 8450a5c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

event/listener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public function show_idea($event)
242242
'S_CAN_VOTE' => $can_vote,
243243
'S_CAN_VOTE_UP' => $can_vote && !$s_voted_up,
244244
'S_CAN_VOTE_DOWN' => $can_vote && !$s_voted_down,
245+
'S_VOTED' => $s_voted_up || $s_voted_down,
245246
'S_VOTED_UP' => $s_voted_up,
246247
'S_VOTED_DOWN' => $s_voted_down,
247248

styles/prosilver/template/idea_body.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</span>
4040
</li>
4141
{% if S_CAN_VOTE %}
42-
<li id="vote-remove"{% if not S_VOTED_UP and not S_VOTED_DOWN %} class="hidden"{% endif %}>
42+
<li id="vote-remove"{% if S_VOTED == false %} class="hidden"{% endif %}>
4343
<i class="icon icon-tiny fa-fw fa-times"></i> <a href="{{ U_REMOVE_VOTE }}" class="removevote" data-l-err="{{ lang('ERROR') }}" data-l-msg="{{ lang('VOTE_ERROR') ~ lang('COLON') }}">{{ lang('REMOVE_VOTE') }}</a>
4444
</li>
4545
{% endif %}

0 commit comments

Comments
 (0)