diff options
| author | richs <richs@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-06-29 23:41:40 +0000 |
|---|---|---|
| committer | richs <richs@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-06-29 23:41:40 +0000 |
| commit | 46f595457a887d3f4ab4e9991bd64260ebccf58f (patch) | |
| tree | 03b244edbf6793db2a277f24381111c7eb4ec68d /roundcubemail/program/steps/mail/upload.inc | |
| parent | 271af6a58c7d0e70253206423bcd0feaa47cd965 (diff) | |
Removeable attachments, Auto-default folder creation, bug fixes
git-svn-id: https://svn.roundcube.net/trunk@269 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/upload.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/upload.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/upload.inc b/roundcubemail/program/steps/mail/upload.inc index 4cd929d0d..7fe7d3dcc 100644 --- a/roundcubemail/program/steps/mail/upload.inc +++ b/roundcubemail/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 +?> |
