diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:32:59 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:37:40 +0200 |
commit | f8a0d501b1269032620b30c9006f88a4ee8d6e9d (patch) | |
tree | 535c0d14a46e5ab39338be8fae3d725c03d3d287 /play.js | |
parent | d2ff4e66e48d78bef4970c584bdcacedbcc05aef (diff) | |
download | washingtons-war-f8a0d501b1269032620b30c9006f88a4ee8d6e9d.tar.gz |
fix popup menu
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -465,10 +465,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() { @@ -479,7 +479,6 @@ function on_card(evt) { if (view.actions) { let c = evt.target.id.split("+")[1] | 0; show_popup_menu(evt, "popup", c, CARDS[c].title) - evt.stopPropagation() } } |