From a3ba58dfc048c948230317191c67101c4aa80bfb Mon Sep 17 00:00:00 2001 From: cweiske Date: Wed, 28 Oct 2009 08:02:17 +0000 Subject: basic ajax voting support. has a bad counting bug somewhere git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@445 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/bookmarks-vote.inc.tpl.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'data/templates/bookmarks-vote.inc.tpl.php') 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 ''; +echo ''; if (isset($row['hasVoted']) && !$row['hasVoted']) { echo '+'; + . createVoteURL(true, $row['bId']) . '"' + . ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"' + . '>+'; } else { echo '+'; } @@ -26,7 +28,9 @@ echo '' . $row['bVoting'] . ''; if (isset($row['hasVoted']) && !$row['hasVoted']) { echo '-'; + . createVoteURL(false, $row['bId']) . '"' + . ' onclick="vote(' . $row['bId'] . ',-1); return false;"' + . '>-'; } else { echo '-'; } -- cgit v1.2.3