mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
fix popup detection to cope with window.opener being a reference to itself --> should NOT be detected as popup
This commit is contained in:
parent
f9e573f5cc
commit
2ceddce771
@ -147,7 +147,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
{
|
{
|
||||||
var popup = false;
|
var popup = false;
|
||||||
try {
|
try {
|
||||||
if (_wnd.opener && typeof _wnd.opener.top.egw == 'function')
|
if (_wnd.opener && _wnd.opener != _wnd && typeof _wnd.opener.top.egw == 'function')
|
||||||
{
|
{
|
||||||
popup = true;
|
popup = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user