diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:32:50 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:36:18 +0200 |
commit | 4c4e05af1e7d22022fc5df3fb9121d0a8347fc2e (patch) | |
tree | 488460193779c7820aa0888c72320227e3c39a93 /play.js | |
parent | 4065ceb4cba6df46970ded768894b789de2bea51 (diff) | |
download | shores-of-tripoli-4c4e05af1e7d22022fc5df3fb9121d0a8347fc2e.tar.gz |
fix popup menu
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -540,10 +540,10 @@ function show_popup_menu(evt, menu_id, target_id, title) { menu.style.left = x + "px" menu.style.top = y + "px" - return true + evt.stopPropagation() + } else { + menu.style.display = "none" } - - return false } function hide_popup_menu() { @@ -561,7 +561,6 @@ function on_click_card(evt) { show_popup_menu(evt, "us_popup", card, US_CARD_NAMES[card - 1]) else show_popup_menu(evt, "tr_popup", card, TR_CARD_NAMES[card - 28]) - evt.stopPropagation() } } } |