diff --git a/pixelegg/js/fw_mobile.js b/pixelegg/js/fw_mobile.js index 5da8ccb1ca..ad283fd7f0 100644 --- a/pixelegg/js/fw_mobile.js +++ b/pixelegg/js/fw_mobile.js @@ -1055,7 +1055,9 @@ window.callManual = window.framework.callManual; jQuery('#egw_fw_print').click(function(){window.framework.print();}); jQuery('#topmenu_logout').click(function(){ window.framework.redirect(this.getAttribute('href')); return false;}); - jQuery('form[name^="tz_selection"]').children().on('change', function(){framework.tzSelection(this.value); return false;}); + jQuery('form[name^="tz_selection"]').children() + .on('change', function() { framework.tzSelection(this.value); return false; }) + .on('click', function(e) { e.stopPropagation(); }); window.egw.link_quick_add('quick_add'); history.pushState({type:'main'}, 'main', '#main'); jQuery(window).on('popstate', function(e){ diff --git a/pixelegg/js/fw_pixelegg.js b/pixelegg/js/fw_pixelegg.js index 96ab332efd..86194b0d93 100644 --- a/pixelegg/js/fw_pixelegg.js +++ b/pixelegg/js/fw_pixelegg.js @@ -127,7 +127,9 @@ jQuery('#topmenu_info_user_avatar').click(function(){window.framework.toggle_avatar_menu();}); jQuery('#topmenu_info_print_title').click(function(){window.framework.print();}); jQuery('#topmenu_info_logout').click(function(){ window.framework.redirect(this.getAttribute('data-logout-url')); }); - jQuery('form[name^="tz_selection"]').children().on('change', function(){framework.tzSelection(this.value); return false;}); + jQuery('form[name^="tz_selection"]').children() + .on('change', function() { framework.tzSelection(this.value); return false; }) + .on('click', function(e) { e.stopPropagation(); }); window.egw.link_quick_add('topmenu_info_quick_add'); // allowing javascript urls in topmenu and sidebox only under CSP by binding click handlers to them