diff options
Diffstat (limited to 'data/templates/bookmarks-vote.inc.tpl.php')
-rw-r--r-- | data/templates/bookmarks-vote.inc.tpl.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/data/templates/bookmarks-vote.inc.tpl.php b/data/templates/bookmarks-vote.inc.tpl.php index 5979827..d59feb4 100644 --- a/data/templates/bookmarks-vote.inc.tpl.php +++ b/data/templates/bookmarks-vote.inc.tpl.php @@ -13,11 +13,13 @@ if (isset($row['hasVoted']) && !$row['hasVoted']) { } else { $classes = 'vote-badge'; } -echo '<span class="' . $classes . '">'; +echo '<span class="' . $classes . '" id="bmv-' . $row['bId'] . '">'; if (isset($row['hasVoted']) && !$row['hasVoted']) { echo '<a class="vote-for" rel="nofollow" href="' - . createVoteURL(true, $row['bId']) . '">+</a>'; + . createVoteURL(true, $row['bId']) . '"' + . ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"' + . '>+</a>'; } else { echo '<span class="vote-for-inactive">+</span>'; } @@ -26,7 +28,9 @@ echo '<span class="voting">' . $row['bVoting'] . '</span>'; if (isset($row['hasVoted']) && !$row['hasVoted']) { echo '<a class="vote-against" rel="nofollow" href="' - . createVoteURL(false, $row['bId']) . '">-</a>'; + . createVoteURL(false, $row['bId']) . '"' + . ' onclick="vote(' . $row['bId'] . ',-1); return false;"' + . '>-</a>'; } else { echo '<span class="vote-against-inactive">-</span>'; } |