Got remote applications in the jdots template finally working as they should - this unfortunately required a lot of 'dirty' hacks, as egroupware had not been designed to do this. So e.g. there had to be a litte bit code added to the login page, which prevented it from redirecting to a page with a full framework rebuild.

This commit is contained in:
Andreas Stöckel
2011-01-20 14:11:47 +00:00
parent 1abcbb12fc
commit 0f0e57f398
5 changed files with 93 additions and 19 deletions

View File

@ -114,6 +114,27 @@ function egw_appWindow(_app)
return window;
}
/**
* Returns the current egw application
* @param string _name is only used for fallback, if an onlder version of jdots is used.
*/
function egw_getApp(_name)
{
var napp = null;
if (typeof window.frameElement != "undefined" &&
window.frameElement != null &&
typeof window.frameElement.egw_app != "undefined")
{
napp = window.frameElement.egw_app;
}
else
{
napp = window.parent.framework.getApplicationByName(_name);
}
return napp;
}
/**
* Refresh given application _app display of entry _id, incl. outputting _msg
*