mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
fixed not working popups or other javascript related actions in idots sidebox menu, if it is hidden and only shown on click or hover
This commit is contained in:
parent
49bf055b33
commit
bed4a8461b
@ -85,7 +85,7 @@ egw_LAB.wait(function() {
|
||||
|
||||
// allowing javascript urls in topmenu and sidebox only under CSP by binding click handlers to them
|
||||
var href_regexp = /^javascript:([^\(]+)\((.*)?\);?$/;
|
||||
jQuery('#topmenu_items,#thesideboxcolumn').on('click','a[href^="javascript:"]',function(ev){
|
||||
jQuery('#topmenu_items,#thesideboxcolumn,#menu2Content').on('click','a[href^="javascript:"]',function(ev){
|
||||
ev.stopPropagation(); // do NOT execute regular event, as it will violate CSP, when handler does NOT return false
|
||||
var matches = this.href.match(href_regexp);
|
||||
var args = [];
|
||||
|
Loading…
Reference in New Issue
Block a user