diff options
author | thomascube <thomas@roundcube.net> | 2011-12-16 18:38:59 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-12-16 18:38:59 +0000 |
commit | f94e442469deca30b39f3fa08aade83cbd0ede70 (patch) | |
tree | 33a1d290c73ff935ffc01eaf114deaa0203f2778 /program/steps/mail/show.inc | |
parent | e10f1385ec91b77b2114e1841697ef4cb46ba48b (diff) |
Add more classes and options to HTML elements for better styleability
Diffstat (limited to 'program/steps/mail/show.inc')
-rw-r--r-- | program/steps/mail/show.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index 46a5597d1..aee563d52 100644 --- a/program/steps/mail/show.inc +++ b/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( |