diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:32:37 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:37:33 +0200 |
commit | 61d1885d55bd84e04a7835525343e9d7ada04ea4 (patch) | |
tree | 7fd1028a82d3ec932400c466bc820bed8f48bbfc /play.js | |
parent | 6f4e972778f33baf618aa35d1a439dcdb0f39722 (diff) | |
download | pax-pamir-61d1885d55bd84e04a7835525343e9d7ada04ea4.tar.gz |
fix popup menu
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -445,10 +445,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() { @@ -461,7 +461,6 @@ function on_click_card(evt) { send_action('card', c) } else { show_popup_menu(evt, "popup", c, cards[c].name) - evt.stopPropagation() } } |