From 41fa0b909ac1fe80dd103e8d986776ef46a5b50a Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 31 Jul 2006 18:51:23 -0400
Subject: [PATCH] Compose, save and sendmail cleanup

---
 program/steps/mail/upload.inc |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc
index 0af8eed..abab389 100644
--- a/program/steps/mail/upload.inc
+++ b/program/steps/mail/upload.inc
@@ -53,18 +53,12 @@
 
 
 // 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);
 
 ?>

--
Gitblit v1.9.1