summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/attachments.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-16 18:38:59 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-16 18:38:59 +0000
commitedb5c078d3ea1afbc63669ce4eb93eef224259b7 (patch)
treee603e73cbaf3f91ec19ece69326f931b15b784c2 /roundcubemail/program/steps/mail/attachments.inc
parentdd656467d101bef66fcefcf7e6d5d7962f8cda08 (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/attachments.inc')
-rw-r--r--roundcubemail/program/steps/mail/attachments.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/attachments.inc b/roundcubemail/program/steps/mail/attachments.inc
index ed4a81186..52de1c1f8 100644
--- a/roundcubemail/program/steps/mail/attachments.inc
+++ b/roundcubemail/program/steps/mail/attachments.inc
@@ -126,6 +126,7 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
'href' => "#delete",
'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%s', this)", JS_OBJECT_NAME, $id),
'title' => rcube_label('delete'),
+ 'class' => 'delete',
), $button);
$content .= Q($attachment['name']);
@@ -134,6 +135,7 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
'html' => $content,
'name' => $attachment['name'],
'mimetype' => $attachment['mimetype'],
+ 'classname' => rcmail_filetype2classname($attachment['mimetype'], $attachment['name']),
'complete' => true), $uploadid);
}
else { // upload failed