summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-04 16:25:57 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-04 16:25:57 +0100
commit2a2354a6fe7442dffd5539b5218eed9741b67e3c (patch)
tree5bd20e9fd353ddfe88b856695dbefcf7e275be83
parentd9b77f780cbf075df18490598bff0a6b51a8b750 (diff)
downloadvotes-for-women-2a2354a6fe7442dffd5539b5218eed9741b67e3c.tar.gz
fix card action
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index 6a78abc..ae7c8eb 100644
--- a/play.js
+++ b/play.js
@@ -286,7 +286,9 @@ function on_focus_us_state(evt) {
function on_click_card(evt) {
let card = evt.target.my_card
- if (is_action('card_select', card)) {
+ if (is_action('card', card)) {
+ send_action('card', card)
+ } else if (is_action('card_select', card)) {
show_popup_menu(evt, "popup_select_card", card, CARDS[card].name)
} else {
show_popup_menu(evt, "popup", card, CARDS[card].name)