Window dependant api modules do now get reinstanciated, if the window location changes

This commit is contained in:
Andreas Stöckel
2012-03-07 15:20:04 +00:00
parent c8bf9ed6ef
commit 292f18bc1a
4 changed files with 53 additions and 21 deletions

View File

@ -11,6 +11,16 @@
* @version $Id$
*/
// Loading of the egw object, if it already is loaded in an upper window
if (window.opener && typeof window.opener.egw !== 'undefined')
{
window['egw'] = window.opener.egw;
}
else if (window.top && typeof window.top.egw !== 'undefined')
{
window['egw'] = window.top.egw;
}
/***********************************************\
* INITIALIZATION *
\***********************************************/