Add function menu_is_open.

master
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
1 changed files with 6 additions and 0 deletions

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)
{