fix popup detection to cope with window.opener being a reference to itself --> should NOT be detected as popup

This commit is contained in:
Ralf Becker 2014-10-17 08:22:28 +00:00
parent 9481dab570
commit 2778b48273

View File

@ -147,7 +147,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
{
var popup = false;
try {
if (_wnd.opener && typeof _wnd.opener.top.egw == 'function')
if (_wnd.opener && _wnd.opener != _wnd && typeof _wnd.opener.top.egw == 'function')
{
popup = true;
}