diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index c6de002500..60826bb4a6 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -3112,8 +3112,10 @@ class mail_ui } if (!$importFailed) { + list($width, $height) = explode('x', egw_link::get_registry('mail', 'add_popup')); + if ($width > 0 && $height > 0) egw_json_response::get()->call('resizeTo', $width, $height); ExecMethod2('mail.mail_ui.displayMessage',$linkData); - exit; + return; } } if (!is_array($content)) $content = array();