summaryrefslogtreecommitdiff
path: root/program/steps/mail/upload.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-07-31 22:51:23 +0000
committerthomascube <thomas@roundcube.net>2006-07-31 22:51:23 +0000
commit41fa0b909ac1fe80dd103e8d986776ef46a5b50a (patch)
tree0a7e053b57951761e9e8662dd799cf46a2b7906a /program/steps/mail/upload.inc
parentabb32edbeb0e4c9be7b38c4162bd8c7cbd06dc74 (diff)
Compose, save and sendmail cleanup
Diffstat (limited to 'program/steps/mail/upload.inc')
-rw-r--r--program/steps/mail/upload.inc12
1 files changed, 3 insertions, 9 deletions
diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc
index 0af8eed46..abab3891b 100644
--- a/program/steps/mail/upload.inc
+++ b/program/steps/mail/upload.inc
@@ -53,18 +53,12 @@ foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath)
// send html page with JS calls as response
-print <<<EOF
-<html>
-<script type="text/javascript">
-if (parent.$JS_OBJECT_NAME)
-{
+$frameout = <<<EOF
$response
parent.$JS_OBJECT_NAME.show_attachment_form(false);
parent.$JS_OBJECT_NAME.auto_save_start();
-}
-</script>
-</html>
EOF;
-exit;
+
+rcube_iframe_response($frameout);
?>