summaryrefslogtreecommitdiff
path: root/program/steps/mail/compose.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-12-22 16:35:38 +0000
committerthomascube <thomas@roundcube.net>2011-12-22 16:35:38 +0000
commita84bfa356ab168b0b065efeffb32a603970acd13 (patch)
tree6d9923de0d780f59761bd35441d6d6f81ffa72c1 /program/steps/mail/compose.inc
parent0ec438c5d68309b234bcc49c601b8b004da3724b (diff)
Fix upload form handling
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r--program/steps/mail/compose.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 76ff31d3c..b7a4fcb33 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -1276,7 +1276,7 @@ function rcmail_compose_attachment_form($attrib)
$button = new html_inputfield(array('type' => 'button'));
$out = html::div($attrib,
- $OUTPUT->form_tag(array('name' => 'uploadform', 'method' => 'post', 'enctype' => 'multipart/form-data'),
+ $OUTPUT->form_tag(array('id' => $attrib['id'].'Frm', 'name' => 'uploadform', 'method' => 'post', 'enctype' => 'multipart/form-data'),
html::div(null, rcmail_compose_attachment_field(array('size' => $attrib['attachmentfieldsize']))) .
html::div('hint', rcube_label(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) .
(get_boolean($attrib['buttons']) ? html::div('buttons',
@@ -1286,7 +1286,7 @@ function rcmail_compose_attachment_form($attrib)
)
);
- $OUTPUT->add_gui_object('uploadform', $attrib['id']);
+ $OUTPUT->add_gui_object('uploadform', $attrib['id'].'Frm');
return $out;
}