fix visual update up/downvote
This commit is contained in:
parent
0b816a0677
commit
d69bfc2511
@ -157,7 +157,7 @@ define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/m
|
||||
// update vote counter, but hide if votes sum to 0
|
||||
var votes = function(value) {
|
||||
var span = $("span.votes", footer);
|
||||
if (span === null && value === 0) {
|
||||
if (span === null && value !== 0) {
|
||||
footer.prepend($.new("span.votes", value));
|
||||
} else {
|
||||
if (value === 0) {
|
||||
@ -240,8 +240,8 @@ define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/m
|
||||
} else {
|
||||
$("span.note", header).textContent = msgs["comment-deleted"];
|
||||
text.innerHTML = "<p> </p>";
|
||||
$("a.edit", footer).remove()
|
||||
$("a.delete", footer).remove()
|
||||
$("a.edit", footer).remove();
|
||||
$("a.delete", footer).remove();
|
||||
}
|
||||
del.textContent = msgs["comment-delete"];
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user