diff --git a/src/gui/src/UI/UIContextMenu.js b/src/gui/src/UI/UIContextMenu.js index 202852c7..66d69c1b 100644 --- a/src/gui/src/UI/UIContextMenu.js +++ b/src/gui/src/UI/UIContextMenu.js @@ -90,7 +90,6 @@ * https://github.com/kamens/jQuery-menu-aim */ (function ($) { - $.fn.menuAim = function (opts) { // Initialize menu-aim for all elements in jQuery collection this.each(function () { @@ -365,6 +364,10 @@ function UIContextMenu(options){ $('.window-active .window-app-iframe').css('pointer-events', 'none'); const menu_id = window.global_element_id++; + + // Dispatch 'ctxmenu-will-open' event + window.dispatchEvent(new CustomEvent('ctxmenu-will-open', { detail: { options: options} })); + let h = ''; h += `