diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-07-25 15:13:15 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-07-25 15:13:15 +0000 |
| commit | 30e8a4a925222cd9309acb0e3a232c11bc0966ac (patch) | |
| tree | 49804a3abefe17b541169f2c3898d4d45ea36269 /roundcubemail/program/steps/mail/compose.inc | |
| parent | e16836636624b9e0fac96fab586a27fdc75231fa (diff) | |
Prefer File_Info over mime_content_type + detect mime type when uploading + some code style
git-svn-id: https://svn.roundcube.net/trunk@1610 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/compose.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 1b1d0bf4b..9da449d54 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -645,12 +645,17 @@ function rcmail_compose_attachment_list($attrib) $button = Q(rcube_label('delete')); foreach ($_SESSION['compose']['attachments'] as $id => $a_prop) + { + if (empty($a_prop)) + continue; + $out .= html::tag('li', array('id' => "rcmfile".$id), html::a(array( 'href' => "#delete", 'title' => rcube_label('delete'), 'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%d', this)", JS_OBJECT_NAME, $id)), $button) . Q($a_prop['name'])); + } } $OUTPUT->add_gui_object('attachmentlist', $attrib['id']); |
