mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Try to avoid conflicts between framework's egw_appWindow() & jsapi's egw_appWindow()
This commit is contained in:
parent
4aae715fd7
commit
6c03b0ec39
@ -174,6 +174,8 @@ function egw_topWindow()
|
||||
*/
|
||||
function egw_appWindow(_app)
|
||||
{
|
||||
var framework = egw_getFramework();
|
||||
if(framework && framework.egw_appWindow) return framework.egw_appWindow(_app);
|
||||
return window;
|
||||
}
|
||||
|
||||
@ -284,7 +286,7 @@ window.egw_getFramework = function()
|
||||
{
|
||||
return framework;
|
||||
}
|
||||
else if (typeof window.parent.egw_getFramework != "undefined")
|
||||
else if (typeof window.parent.egw_getFramework != "undefined" && window !== window.parent)
|
||||
{
|
||||
return window.parent.egw_getFramework();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user