master
Aevann1 2021-10-06 01:32:24 +02:00
parent 482f14b613
commit 54df1b0a14
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
var type = document.getElementById(cid).checked;
var scoretext = document.getElementById('poll-' + cid);
var score = Number(scoretext.textContent);
if (type == "true") scoretext.textContent = score + 1;
if (type == true) scoretext.textContent = score + 1;
else scoretext.textContent = score - 1;
post('/vote/poll/' + cid + '?vote=' + type);
}