From 7381f103e5947adf697cfb338d65fd9c9e8945f7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 19 Dec 2013 17:18:01 +0000 Subject: [PATCH] Initialize popup flag with window.opener detection, instead of false. --- phpgwapi/js/jsapi/egw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index 51fcff66a3..c7b8dc1ce1 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -41,7 +41,7 @@ var egw_script = document.getElementById('egw_script_id'); // Flag for if this is opened in a popup - var popup = false; + var popup = (window.opener != null); window.egw_webserverUrl = egw_script.getAttribute('data-url'); window.egw_appName = egw_script.getAttribute('data-app');