From 84f49ec5097cd6b2d227fcd53b0c8e39845873a7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Jun 2021 11:38:25 +0200 Subject: tripoli: Show disabled card popup menu items too. Stable menu items should prevent some mis-clicks. --- public/common/client.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public') 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() { -- cgit v1.2.3