diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-20 10:21:12 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-20 10:21:12 +0000 |
| commit | 9a88ba3f690d1e40166caf4fcd11986be407386c (patch) | |
| tree | 36b34e6cffa8889d9993f34faee60a7baa50669e /roundcubemail/program/steps | |
| parent | 4bd719a8dbb7e2b2fcc2b884381d14680e381af2 (diff) | |
First steps for Larry's address book
git-svn-id: https://svn.roundcube.net/trunk@5634 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/edit.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/roundcubemail/program/steps/addressbook/edit.inc b/roundcubemail/program/steps/addressbook/edit.inc index 49915f5ab..eb6aa1886 100644 --- a/roundcubemail/program/steps/addressbook/edit.inc +++ b/roundcubemail/program/steps/addressbook/edit.inc @@ -176,9 +176,8 @@ function rcmail_upload_photo_form($attrib) { global $OUTPUT; - // add ID if not given - if (!$attrib['id']) - $attrib['id'] = 'rcmUploadbox'; + // set defaults + $attrib += array('id' => 'rcmUploadbox', 'buttons' => 'yes'); // find max filesize value $max_filesize = parse_bytes(ini_get('upload_max_filesize')); @@ -196,10 +195,10 @@ function rcmail_upload_photo_form($attrib) $hidden->show() . html::div(null, $input->show()) . html::div('hint', rcube_label(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))) . - html::div('buttons', + (get_boolean($attrib['buttons']) ? html::div('buttons', $button->show(rcube_label('close'), array('class' => 'button', 'onclick' => "$('#$attrib[id]').hide()")) . ' ' . $button->show(rcube_label('upload'), array('class' => 'button mainaction', 'onclick' => JS_OBJECT_NAME . ".command('upload-photo', this.form)")) - ) + ) : '') ) ); |
