|
|
@ -385,6 +385,7 @@ function rcmail_process_compose_params(&$COMPOSE)
|
|
|
|
'group' => $COMPOSE_ID,
|
|
|
|
'group' => $COMPOSE_ID,
|
|
|
|
'name' => $filename,
|
|
|
|
'name' => $filename,
|
|
|
|
'mimetype' => rcube_mime::file_content_type($attach, $filename),
|
|
|
|
'mimetype' => rcube_mime::file_content_type($attach, $filename),
|
|
|
|
|
|
|
|
'size' => filesize($attach),
|
|
|
|
'path' => $attach,
|
|
|
|
'path' => $attach,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1557,6 +1558,9 @@ function rcmail_compose_attachment_list($attrib)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$content = sprintf('%s <span class="attachment-size">(%s)</span>',
|
|
|
|
|
|
|
|
rcube::Q($a_prop['name']), $RCMAIL->show_bytes($a_prop['size']));
|
|
|
|
|
|
|
|
|
|
|
|
$out .= html::tag('li', array(
|
|
|
|
$out .= html::tag('li', array(
|
|
|
|
'id' => 'rcmfile'.$id,
|
|
|
|
'id' => 'rcmfile'.$id,
|
|
|
|
'class' => rcube_utils::file2class($a_prop['mimetype'], $a_prop['name']),
|
|
|
|
'class' => rcube_utils::file2class($a_prop['mimetype'], $a_prop['name']),
|
|
|
@ -1571,7 +1575,7 @@ function rcmail_compose_attachment_list($attrib)
|
|
|
|
'aria-label' => $RCMAIL->gettext('delete') . ' ' . $a_prop['name'],
|
|
|
|
'aria-label' => $RCMAIL->gettext('delete') . ' ' . $a_prop['name'],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
$button
|
|
|
|
$button
|
|
|
|
) . rcube::Q($a_prop['name'])
|
|
|
|
) . $content
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$jslist['rcmfile'.$id] = array(
|
|
|
|
$jslist['rcmfile'.$id] = array(
|
|
|
|