enable vote changes on voting badge

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@500 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-11-02 09:39:07 +00:00
parent c2c4f0aaa8
commit 65b1963d16
2 changed files with 7 additions and 9 deletions

View 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>';
?>

View 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;
}