mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 08:25:03 +02:00
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:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user