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:12:23 +00:00
parent ccf3b8ca42
commit b5da751987

View File

@ -277,8 +277,7 @@ class jdots_framework extends egw_framework
$content .= '<script type="text/javascript">
if (typeof window.parent.framework != "undefined")
{
var app = window.parent.framework.getApplicationByName("'.$app.'");
window.parent.framework.setWebsiteTitle(app,"'.htmlspecialchars($vars['website_title']).'","'.$app_header.'");
window.parent.framework.setWebsiteTitle(egw_getApp("'.$app.'"),"'.htmlspecialchars($vars['website_title']).'","'.$app_header.'");
}';
//Register the global key press handler
@ -489,17 +488,7 @@ class jdots_framework extends egw_framework
return '<script type="text/javascript">
if (typeof window.parent.framework != "undefined")
{
var napp = null;
if (typeof window.egw_app != "undefined")
{
napp = window.egw_app;
}
else
{
napp = window.parent.framework.getApplicationByName("'.$app.'");
}
window.parent.framework.setSidebox(napp,'.$sidebox.',"'.$md5.'");
window.parent.framework.setSidebox(egw_getApp("'.$app.'"),'.$sidebox.',"'.$md5.'");
}
</script>';
}