forked from rDrama/rDrama
sfdsdf
parent
482f14b613
commit
54df1b0a14
|
@ -22,7 +22,7 @@
|
||||||
var type = document.getElementById(cid).checked;
|
var type = document.getElementById(cid).checked;
|
||||||
var scoretext = document.getElementById('poll-' + cid);
|
var scoretext = document.getElementById('poll-' + cid);
|
||||||
var score = Number(scoretext.textContent);
|
var score = Number(scoretext.textContent);
|
||||||
if (type == "true") scoretext.textContent = score + 1;
|
if (type == true) scoretext.textContent = score + 1;
|
||||||
else scoretext.textContent = score - 1;
|
else scoretext.textContent = score - 1;
|
||||||
post('/vote/poll/' + cid + '?vote=' + type);
|
post('/vote/poll/' + cid + '?vote=' + type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue