use iframe for popups running in main window with GET parameter no_popup=1, as they need to set a different CSP to use eg. CKEditor like Tracker URL in notifications, if HTML is allowed

This commit is contained in:
Ralf Becker 2016-05-30 15:35:58 +02:00
parent 0d74f36925
commit 1edc14740b

View File

@ -188,11 +188,6 @@ var fw_browser = (function(){ "use strict"; return Class.extend(
targetUrl = "index.php?menuaction=" + matches[1]; targetUrl = "index.php?menuaction=" + matches[1];
useIframe = false; useIframe = false;
} }
// External link, but we'd still like to use everything without iframe
if(_url.indexOf('no_popup=1') > 0)
{
useIframe = false;
}
// Destroy application js // Destroy application js
if(app[this.app.appName] && app[this.app.appName].destroy) if(app[this.app.appName] && app[this.app.appName].destroy)