mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 19:41:45 +02:00
Try to avoid conflicts between framework's egw_appWindow() & jsapi's egw_appWindow()
This commit is contained in:
@ -174,6 +174,8 @@ function egw_topWindow()
|
|||||||
*/
|
*/
|
||||||
function egw_appWindow(_app)
|
function egw_appWindow(_app)
|
||||||
{
|
{
|
||||||
|
var framework = egw_getFramework();
|
||||||
|
if(framework && framework.egw_appWindow) return framework.egw_appWindow(_app);
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -284,7 +286,7 @@ window.egw_getFramework = function()
|
|||||||
{
|
{
|
||||||
return framework;
|
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();
|
return window.parent.egw_getFramework();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user