diff options
author | svncommit <devs@roundcube.net> | 2006-06-29 23:41:40 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2006-06-29 23:41:40 +0000 |
commit | a894ba5029a09fb9d0453b5cf9c944ce313f8a48 (patch) | |
tree | 34ba2e7a2c82d680fb8d772568efa46a83967f98 /program/steps/mail/upload.inc | |
parent | ba8f44c4da7724f5e35866277e9775ec26616dc7 (diff) |
Removeable attachments, Auto-default folder creation, bug fixes
Diffstat (limited to 'program/steps/mail/upload.inc')
-rw-r--r-- | program/steps/mail/upload.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/steps/mail/upload.inc b/program/steps/mail/upload.inc index 4cd929d0d..7fe7d3dcc 100644 --- a/program/steps/mail/upload.inc +++ b/program/steps/mail/upload.inc @@ -45,7 +45,9 @@ foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath) 'mimetype' => $_FILES['_attachments']['type'][$i], 'path' => $tmpfname); - $response .= sprintf("parent.%s.add2attachment_list('%s');\n", $JS_OBJECT_NAME, $_FILES['_attachments']['name'][$i]); + $button = sprintf('<img src="%s/images/icons/remove-attachment.png" alt="%s" border="0" style="padding-right:2px;vertical-align:middle">', $CONFIG['skin_path'], rcube_label('delete')); + $content = sprintf('<a href="#" onclick="%s.command(\\\'remove-attachment\\\',\\\'%s\\\')" title="%s">%s</a>%s',$JS_OBJECT_NAME, $_FILES['_attachments']['name'][$i], rcube_label('deletefolder'), $button, $_FILES['_attachments']['name'][$i]); + $response .= sprintf('parent.%s.add2attachment_list(\'%s\',\'%s\');',$JS_OBJECT_NAME, $_FILES['_attachments']['name'][$i], $content); } } @@ -64,4 +66,4 @@ parent.$JS_OBJECT_NAME.show_attachment_form(false); EOF; exit; -?>
\ No newline at end of file +?> |