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:
parent
c2c4f0aaa8
commit
65b1963d16
2 changed files with 7 additions and 9 deletions
|
@ -21,24 +21,24 @@ if (isset($row['hasVoted']) && !$row['hasVoted']) {
|
||||||
}
|
}
|
||||||
echo '<span class="' . $classes . '" id="bmv-' . $row['bId'] . '">';
|
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="'
|
echo '<a class="vote-for" rel="nofollow" href="'
|
||||||
. createVoteURL(true, $row['bId']) . '"'
|
. createVoteURL(true, $row['bId']) . '"'
|
||||||
. ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"'
|
. ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"'
|
||||||
. '>+</a>';
|
. '>+</a>';
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="vote-for-inactive">+</span>';
|
echo '<span class="vote-for vote-for-inactive">+</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<span class="voting">' . $row['bVoting'] . '</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="'
|
echo '<a class="vote-against" rel="nofollow" href="'
|
||||||
. createVoteURL(false, $row['bId']) . '"'
|
. createVoteURL(false, $row['bId']) . '"'
|
||||||
. ' onclick="vote(' . $row['bId'] . ',-1); return false;"'
|
. ' onclick="vote(' . $row['bId'] . ',-1); return false;"'
|
||||||
. '>-</a>';
|
. '>-</a>';
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="vote-against-inactive">-</span>';
|
echo '<span class="vote-against vote-against-inactive">-</span>';
|
||||||
}
|
}
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
?>
|
?>
|
|
@ -282,14 +282,12 @@ li.xfolkentry div div.description span.anchorBookmark {
|
||||||
.vote-badge a.vote-against:hover {
|
.vote-badge a.vote-against:hover {
|
||||||
background-color: #ffcccc;
|
background-color: #ffcccc;
|
||||||
}
|
}
|
||||||
.vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
|
.vote-badge-for .vote-for-inactive {
|
||||||
font-size: 3px;
|
|
||||||
color: transparent;
|
color: transparent;
|
||||||
}
|
|
||||||
.vote-badge-for {
|
|
||||||
background-color: #ccffbb;
|
background-color: #ccffbb;
|
||||||
}
|
}
|
||||||
.vote-badge-against {
|
.vote-badge-against .vote-against-inactive {
|
||||||
|
color: transparent;
|
||||||
background-color: #ffcccc;
|
background-color: #ffcccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue