summaryrefslogtreecommitdiff
path: root/public/join.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-11-19 02:45:51 +0100
committerTor Andersson <tor@ccxvii.net>2021-11-19 02:48:53 +0100
commit1a71184bcbf714d266e80d186fd666d393ed5981 (patch)
treecac3322f867a501ac6c3c160c47ee3efb875b1a1 /public/join.js
parentacc03c79e0d1a1265922b05abafd1c4a18a627a0 (diff)
downloadserver-1a71184bcbf714d266e80d186fd666d393ed5981.tar.gz
Clean up stylesheets. Don't show options in game lists.
Diffstat (limited to 'public/join.js')
-rw-r--r--public/join.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/join.js b/public/join.js
index 898113b..f79eabc 100644
--- a/public/join.js
+++ b/public/join.js
@@ -96,9 +96,9 @@ function update() {
if (player) {
if (game.status > 0) {
if (is_active(player, role))
- element.className = "is_active";
+ element.classList.add("is_active");
else
- element.className = "";
+ element.classList.remove("is_active");
if (player.user_id === user_id)
element.innerHTML = `<a href="/${game.title_id}/play:${game.game_id}:${role}">Play</a>`;
else