summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorvbenincasa <vbenincasa@gmail.com>2009-09-15 08:21:02 +0000
committervbenincasa <vbenincasa@gmail.com>2009-09-15 08:21:02 +0000
commit2b77e8daa7f7e5c0a71f615672cdb492dcdf0dad (patch)
tree3f04ae5d9d666d3f3a3f5cfbd66627607ff7b1a3 /program/steps/mail
parent6c4c5b1975d2b4fd5a6e8a40b3e90a4a14a2c322 (diff)
- Provide some additional usability for attachments form with "mainaction" class and a slightly bigger file field (CSS width doesn't works with file field so we need to use "size" property)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/compose.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 8b821c8ea..4a03cd7c3 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -831,15 +831,15 @@ function rcmail_compose_attachment_form($attrib)
$max_filesize = $max_postsize;
$max_filesize = show_bytes($max_filesize);
- $button = new html_inputfield(array('type' => 'button', 'class' => 'button'));
+ $button = new html_inputfield(array('type' => 'button'));
$out = html::div($attrib,
$OUTPUT->form_tag(array('name' => 'form', 'method' => 'post', 'enctype' => 'multipart/form-data'),
- html::div(null, rcmail_compose_attachment_field(array())) .
+ html::div(null, rcmail_compose_attachment_field(array('size' => $attrib[attachmentfieldsize]))) .
html::div('hint', rcube_label(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) .
html::div('buttons',
- $button->show(rcube_label('close'), array('onclick' => "document.getElementById('$attrib[id]').style.visibility='hidden'")) . ' ' .
- $button->show(rcube_label('upload'), array('onclick' => JS_OBJECT_NAME . ".command('send-attachment', this.form)"))
+ $button->show(rcube_label('close'), array('class' => 'button', 'onclick' => "document.getElementById('$attrib[id]').style.visibility='hidden'")) . ' ' .
+ $button->show(rcube_label('upload'), array('class' => 'button mainaction', 'onclick' => JS_OBJECT_NAME . ".command('send-attachment', this.form)"))
)
)
);