diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-22 16:35:38 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-22 16:35:38 +0000 |
| commit | 6a33f0be679d785f5dde7f7fe942a9088efb0fa6 (patch) | |
| tree | 9bb6998198243ab1b5824520379417865235561d /roundcubemail/program/steps/addressbook | |
| parent | 38394350ffaf894e399b860531bc9d3cee303e0d (diff) | |
Fix upload form handling
git-svn-id: https://svn.roundcube.net/trunk@5643 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/edit.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/addressbook/edit.inc b/roundcubemail/program/steps/addressbook/edit.inc index eb6aa1886..c5ca44d7c 100644 --- a/roundcubemail/program/steps/addressbook/edit.inc +++ b/roundcubemail/program/steps/addressbook/edit.inc @@ -177,7 +177,7 @@ function rcmail_upload_photo_form($attrib) global $OUTPUT; // set defaults - $attrib += array('id' => 'rcmUploadbox', 'buttons' => 'yes'); + $attrib += array('id' => 'rcmUploadform', 'buttons' => 'yes'); // find max filesize value $max_filesize = parse_bytes(ini_get('upload_max_filesize')); @@ -191,7 +191,7 @@ function rcmail_upload_photo_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'), $hidden->show() . html::div(null, $input->show()) . html::div('hint', rcube_label(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) . @@ -203,7 +203,7 @@ function rcmail_upload_photo_form($attrib) ); $OUTPUT->add_label('addphoto','replacephoto'); - $OUTPUT->add_gui_object('uploadbox', $attrib['id']); + $OUTPUT->add_gui_object('uploadform', $attrib['id'].'Frm'); return $out; } |
