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:
Ralf Becker 2015-06-20 08:47:00 +00:00
parent 6be3313d3c
commit c409247283

View File

@ -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 = [];