Fixed errors with non-defined "tree" element in xajax responses in felamimail

This commit is contained in:
Andreas Stöckel 2010-06-09 14:41:53 +00:00
parent feaab09818
commit de5c558015

View File

@ -39,6 +39,21 @@ else if (document.layers)
is_ns4 = true;
}
/**
* Returns the top window which contains the current egw_instance, even for popup windows
*/
function egw_topWindow()
{
if (window.opener)
{
return window.opener.top;
}
else
{
return window.top;
}
}
/**
* Returns the window object of the current application
* @param string _app is the name of the application which requests the window object