| | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2009, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | | PURPOSE: | |
| | | | Upload, remove, display attachments in compose form | |
| | |
| | | 'href' => "#delete", |
| | | 'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%s', this)", JS_OBJECT_NAME, $id), |
| | | 'title' => rcube_label('delete'), |
| | | 'class' => 'delete', |
| | | ), $button); |
| | | |
| | | $content .= Q($attachment['name']); |
| | |
| | | 'html' => $content, |
| | | 'name' => $attachment['name'], |
| | | 'mimetype' => $attachment['mimetype'], |
| | | 'classname' => rcmail_filetype2classname($attachment['mimetype'], $attachment['name']), |
| | | 'complete' => true), $uploadid); |
| | | } |
| | | else { // upload failed |