| | |
| | | $ol .= html::tag('li', null, Q(sprintf("%s (%s)", $filename, $size))); |
| | | } |
| | | else { |
| | | if (mb_strlen($filename) > 50) { |
| | | if ($attrib['maxlength'] && mb_strlen($filename) > $attrib['maxlength']) { |
| | | $title = $filename; |
| | | $filename = abbreviate_string($filename, 50); |
| | | $filename = abbreviate_string($filename, $attrib['maxlength']); |
| | | } |
| | | else { |
| | | $title = ''; |
| | |
| | | 'href' => $MESSAGE->get_part_url($attach_prop->mime_id, false), |
| | | 'onclick' => sprintf('return %s.command(\'load-attachment\',\'%s\',this)', |
| | | JS_OBJECT_NAME, $attach_prop->mime_id), |
| | | 'onmouseover' => $title ? '' : 'rcube_webmail.long_subject_title_ex(this, 0)', |
| | | 'title' => Q($title), |
| | | ), Q($filename)); |
| | | $ol .= html::tag('li', array('class' => $class, 'id' => $id), $link); |