From edb5c078d3ea1afbc63669ce4eb93eef224259b7 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 16 Dec 2011 18:38:59 +0000 Subject: 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 --- roundcubemail/program/steps/mail/attachments.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roundcubemail/program/steps/mail/attachments.inc') 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 -- cgit v1.2.3