summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/bookmarks-vote.inc.tpl.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/bookmarks-vote.inc.tpl.php b/data/templates/bookmarks-vote.inc.tpl.php
index f65cf37..41572d5 100644
--- a/data/templates/bookmarks-vote.inc.tpl.php
+++ b/data/templates/bookmarks-vote.inc.tpl.php
@@ -21,24 +21,24 @@ if (isset($row['hasVoted']) && !$row['hasVoted']) {
}
echo '<span class="' . $classes . '" id="bmv-' . $row['bId'] . '">';
-if (isset($row['hasVoted']) && !$row['hasVoted']) {
+if (isset($row['hasVoted']) && $row['vote'] != 1) {
echo '<a class="vote-for" rel="nofollow" href="'
. createVoteURL(true, $row['bId']) . '"'
. ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"'
. '>+</a>';
} else {
- echo '<span class="vote-for-inactive">+</span>';
+ echo '<span class="vote-for vote-for-inactive">+</span>';
}
echo '<span class="voting">' . $row['bVoting'] . '</span>';
-if (isset($row['hasVoted']) && !$row['hasVoted']) {
+if (isset($row['hasVoted']) && $row['vote'] != -1) {
echo '<a class="vote-against" rel="nofollow" href="'
. createVoteURL(false, $row['bId']) . '"'
. ' onclick="vote(' . $row['bId'] . ',-1); return false;"'
. '>-</a>';
} else {
- echo '<span class="vote-against-inactive">-</span>';
+ echo '<span class="vote-against vote-against-inactive">-</span>';
}
echo '</span>';
?> \ No newline at end of file