diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-20 09:51:31 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-07-20 09:51:31 +0000 |
| commit | f2f4319680dfb181c63fe98b066e811fd213aa31 (patch) | |
| tree | 16865048fe98bf5e1bc9593d1b91cadfbb392cda /roundcubemail/program | |
| parent | 6ac0126ab5d84f267cc68a609005438a16d34ee1 (diff) | |
- Improved parent folder selector
git-svn-id: https://svn.roundcube.net/trunk@4942 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/settings/edit_folder.inc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/roundcubemail/program/steps/settings/edit_folder.inc b/roundcubemail/program/steps/settings/edit_folder.inc index 440a11999..70d8c56dd 100644 --- a/roundcubemail/program/steps/settings/edit_folder.inc +++ b/roundcubemail/program/steps/settings/edit_folder.inc @@ -106,25 +106,24 @@ function rcmail_folder_form($attrib) ), ); - if (strlen($path)) { + if (strlen($path) || !strlen($mbox)) { if (!empty($options) && ($options['norename'] || $options['namespace'] != 'personal')) { // prevent user from moving folder $hidden_path = new html_hiddenfield(array('name' => '_parent', 'value' => $path)); $form['props']['fieldsets']['location']['content']['name']['value'] .= $hidden_path->show(); } else { - $radio1 = new html_radiobutton(array('name' => '_parent', 'value' => '')); - $radio2 = new html_radiobutton(array('name' => '_parent', 'value' => $path_id)); - $selected = isset($_POST['_parent']) ? $_POST['_parent'] : $path_id; - - $html_path = str_replace($delimiter, ' » ', rcmail_localize_folderpath($path)); - - $folderpath = $radio1->show($selected) . Q(rcube_label('none')) . ' ' - .$radio2->show($selected) . Q($html_path); + $selected = isset($_POST['_parent']) ? $_POST['_parent'] : $path_id; + $select = rcmail_mailbox_select(array( + 'name' => '_parent', + 'noselection' => '---', + 'realnames' => false, + 'maxlength' => 150 + )); $form['props']['fieldsets']['location']['content']['path'] = array( 'label' => rcube_label('parentfolder'), - 'value' => $folderpath, + 'value' => $select->show($selected), ); } } |
