summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-19 11:38:25 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-24 14:44:14 +0200
commit84f49ec5097cd6b2d227fcd53b0c8e39845873a7 (patch)
tree50c3644affba089120a0be03d6808315c8b92f2d /public
parent68d2a6dfae86a71c8ee5d813931ff9b9def06939 (diff)
downloadserver-84f49ec5097cd6b2d227fcd53b0c8e39845873a7.tar.gz
tripoli: Show disabled card popup menu items too.
Stable menu items should prevent some mis-clicks.
Diffstat (limited to 'public')
-rw-r--r--public/common/client.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/common/client.js b/public/common/client.js
index 4aea900..d179d94 100644
--- a/public/common/client.js
+++ b/public/common/client.js
@@ -425,14 +425,17 @@ function send_action(verb, noun) {
game.actions = null;
console.log("SEND ACTION", verb, noun);
socket.emit('action', verb, noun);
+ return true;
}
} else {
if (game.actions && game.actions[verb]) {
game.actions = null;
console.log("SEND ACTION", verb, noun);
socket.emit('action', verb);
+ return true;
}
}
+ return false;
}
function send_save() {