diff options
author | Marvin Borner | 2020-10-12 17:30:16 +0200 |
---|---|---|
committer | Marvin Borner | 2020-10-12 17:30:16 +0200 |
commit | e8db49605aab15d80df126530a4a3acfeaa7082f (patch) | |
tree | f067a409967e1a74b8af2e509a6cc9dde00fa866 /poll/public | |
parent | 8bda74d50029c181d35bf13d12252ff4d4592042 (diff) |
Fixed chrom{e,ium} disabled select submissions
Diffstat (limited to 'poll/public')
-rw-r--r-- | poll/public/script.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poll/public/script.js b/poll/public/script.js index 09f8c93..5cca71a 100644 --- a/poll/public/script.js +++ b/poll/public/script.js @@ -7,7 +7,9 @@ if (!["teacher", "pupil"].includes(type)) window.location.href = "/"; dropdown.insertAdjacentHTML( "beforeend", - '<option selected="true" disabled>' + (type == "teacher" ? "Lehrer" : "Schüler") + "/in auswählen...</option>", + '<option value="" selected="true" disabled>' + + (type == "teacher" ? "Lehrer" : "Schüler") + + "/in auswählen...</option>", ); document.querySelector("legend").innerText = type == "teacher" ? "Lehrer-Ranking" : "Schüler-Ranking"; document.querySelector("p").innerText = "Welche/r " + (type == "teacher" ? "Lehrer/in" : "Schüler/in") + "..."; |