Add function menu_is_open.

This commit is contained in:
voussoir 2022-03-08 17:00:25 -08:00
parent ab78385833
commit 635bf27c1e
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -10,6 +10,12 @@ function hide_open_menus()
}
}
contextmenus.menu_is_open =
function menu_is_open()
{
return document.getElementsByClassName("open_contextmenu").length > 0;
}
contextmenus.show_menu =
function show_menu(event, menu)
{