mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Set an empty sidebox if there is json response, and for regular request like idots template render the framework to get header and navbar shown
This commit is contained in:
parent
2dc1f68319
commit
0217c2ebaa
@ -181,15 +181,16 @@ class mail_ui
|
|||||||
$windowName = "editMailAccount".self::$icServerID;
|
$windowName = "editMailAccount".self::$icServerID;
|
||||||
$response->call("egw.open_link", egw::link('/index.php', $linkData), $windowName, "600x480");
|
$response->call("egw.open_link", egw::link('/index.php', $linkData), $windowName, "600x480");
|
||||||
egw_framework::message($message, 'error');
|
egw_framework::message($message, 'error');
|
||||||
|
if ($_GET['menuaction'] == 'mail.mail_ui.index') $response->call('framework.setSidebox','mail',array(),'md5');
|
||||||
if ($exit)
|
if ($exit)
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->framework->render($message);
|
|
||||||
common::egw_exit();
|
common::egw_exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // regular GET request eg. in idots template
|
else // regular GET request eg. in idots template
|
||||||
{
|
{
|
||||||
egw_framework::popup(egw_framework::link('/index.php',$linkData));
|
egw_framework::popup(egw_framework::link('/index.php',$linkData));
|
||||||
|
$GLOBALS['egw']->framework->render($message,'',true);
|
||||||
common::egw_exit();
|
common::egw_exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user