Suppress log on first award modal selection.

master
Snakes 2022-10-16 18:14:50 -04:00
parent 00bfa7bbea
commit 1114590cc7
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,9 @@ function pick(kind, canbuy1, canbuy2) {
let ownednum = Number(document.getElementById(`${kind}-owned`).textContent); let ownednum = Number(document.getElementById(`${kind}-owned`).textContent);
document.getElementById('giveaward').disabled = (ownednum == 0); document.getElementById('giveaward').disabled = (ownednum == 0);
document.getElementById('kind').value=kind; document.getElementById('kind').value=kind;
try {document.getElementsByClassName('picked')[0].classList.toggle('picked');} catch(e) {console.log(e)} if (document.getElementsByClassName('picked').length > 0) {
document.getElementsByClassName('picked')[0].classList.toggle('picked');
}
document.getElementById(kind).classList.toggle('picked') document.getElementById(kind).classList.toggle('picked')
if (kind == "flairlock") { if (kind == "flairlock") {
document.getElementById('notelabel').innerHTML = "New flair:"; document.getElementById('notelabel').innerHTML = "New flair:";