diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-16 18:38:59 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-16 18:38:59 +0000 |
| commit | edb5c078d3ea1afbc63669ce4eb93eef224259b7 (patch) | |
| tree | e603e73cbaf3f91ec19ece69326f931b15b784c2 /roundcubemail/program/steps/mail/show.inc | |
| parent | dd656467d101bef66fcefcf7e6d5d7962f8cda08 (diff) | |
Add more classes and options to HTML elements for better styleability
git-svn-id: https://svn.roundcube.net/trunk@5623 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/show.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/show.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc index 46a5597d1..aee563d52 100644 --- a/roundcubemail/program/steps/mail/show.inc +++ b/roundcubemail/program/steps/mail/show.inc @@ -130,13 +130,7 @@ function rcmail_message_attachments($attrib) $title = ''; } - $classes = array($attach_prop->ctype_primary ? $attach_prop->ctype_primary : 'unknown'); - if ($attach_prop->ctype_secondary) - $classes[] = $attach_prop->ctype_secondary; - if (preg_match('/\.([a-z0-9]+)$/', $attach_prop->filename, $m)) - $classes[] = $m[1]; - - $ol .= html::tag('li', join(' ', $classes), + $ol .= html::tag('li', rcmail_filetype2classname($attach_prop->mimetype, $attach_prop->filename), html::a(array( 'href' => $MESSAGE->get_part_url($attach_prop->mime_id, false), 'onclick' => sprintf( |
