From 6470916d511172c2ccb43ffd417a834ce795c48c Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 18 Feb 2021 11:04:22 -0700 Subject: [PATCH] Disable context menu on topmenu items --- pixelegg/js/fw_pixelegg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pixelegg/js/fw_pixelegg.js b/pixelegg/js/fw_pixelegg.js index a35b304c53..d61dd53f05 100644 --- a/pixelegg/js/fw_pixelegg.js +++ b/pixelegg/js/fw_pixelegg.js @@ -124,6 +124,7 @@ window.framework = new fw_pixelegg("egw_fw_sidemenu", "egw_fw_tabs", window.egw_webserverUrl, egw_setSideboxSize,"egw_fw_splitter", 255, 245); // should be identical to jdots_framework::(DEFAULT|MIN)_SIDEBAR_WIDTH window.callManual = window.framework.callManual; + jQuery("#egw_fw_topmenu_info_items").on("contextmenu",function() {return false;}); jQuery('#topmenu_info_darkmode').click(function(){window.framework.toggle_darkmode(this);}); jQuery('#topmenu_info_user_avatar').click(function(){window.framework.toggle_avatar_menu();}); jQuery('#topmenu_info_print_title').click(function(){window.framework.print();});