]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
enable vote changes on voting badge
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 2 Nov 2009 09:39:07 +0000 (09:39 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Mon, 2 Nov 2009 09:39:07 +0000 (09:39 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@500 b3834d28-1941-0410-a4f8-b48e95affb8f

data/templates/bookmarks-vote.inc.tpl.php
www/scuttle.css

index f65cf37be814c16e42f358357f74280745c25f78..41572d57acedfd6547c2ef81db664aa7cfcb7f79 100644 (file)
@@ -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
index f28b46a8f580848c8266e37d9bf113196aed71df..a01963e197e2cb3c00e592977c78910f10cdd29c 100644 (file)
@@ -282,14 +282,12 @@ li.xfolkentry div div.description span.anchorBookmark {
 .vote-badge a.vote-against:hover {
     background-color: #ffcccc;
 }
-.vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
-    font-size: 3px;
+.vote-badge-for .vote-for-inactive {
     color: transparent;
-}
-.vote-badge-for {
     background-color: #ccffbb;
 }
-.vote-badge-against {
+.vote-badge-against .vote-against-inactive {
+    color: transparent;
     background-color: #ffcccc;
 }