forked from rDrama/rDrama
fix no-longer existing poll options making voting impossible
parent
e7ecde3415
commit
3976b181ac
|
@ -35,8 +35,10 @@ function option_vote_1(oid, parentid, kind) {
|
||||||
if (curr && curr.value)
|
if (curr && curr.value)
|
||||||
{
|
{
|
||||||
const scoretext = document.getElementById('score-' + curr.value);
|
const scoretext = document.getElementById('score-' + curr.value);
|
||||||
const score = Number(scoretext.textContent);
|
if (scoretext) {
|
||||||
scoretext.textContent = score - 1;
|
const score = Number(scoretext.textContent);
|
||||||
|
scoretext.textContent = score - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const scoretext = document.getElementById('score-' + full_oid);
|
const scoretext = document.getElementById('score-' + full_oid);
|
||||||
|
|
Loading…
Reference in New Issue