diff options
author | svncommit <devs@roundcube.net> | 2007-09-25 07:58:36 +0000 |
---|---|---|
committer | svncommit <devs@roundcube.net> | 2007-09-25 07:58:36 +0000 |
commit | f0db3d4cca4a95ace347bdd9bb012c7d48962a7d (patch) | |
tree | b29f864df60a8deb03121ed7a56dda7c0e2bf701 | |
parent | bdfb98977b2e523801324c1a6d1421cdaee16e88 (diff) |
Create new folder as child of selected folder.
-rw-r--r-- | program/js/app.js | 2 | ||||
-rw-r--r-- | program/steps/settings/manage_folders.inc | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 222a7db84..cba5313af 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2535,6 +2535,8 @@ function rcube_webmail() var form; if ((form = this.gui_objects.editform) && form.elements['_folder_name']) name = form.elements['_folder_name'].value; + if (this.env.folder) + name = this.env.folder+this.env.delimiter+name; if (name) this.http_post('create-folder', '_name='+urlencode(name), true); diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc index b39cef612..d960a1e13 100644 --- a/program/steps/settings/manage_folders.inc +++ b/program/steps/settings/manage_folders.inc @@ -53,7 +53,8 @@ else if ($_action=='create-folder') if ($create && $OUTPUT->ajax_call) { - $OUTPUT->command('add_folder_row', $create, rcube_charset_convert($create, 'UTF-7')); + $display_create = str_repeat(' ', substr_count($create, $IMAP->delimiter)) . preg_replace('/.*' . preg_quote($IMAP->delimiter) . '/', '', rcube_charset_convert($create, 'UTF-7')); + $OUTPUT->command('add_folder_row', $create, $display_create); $OUTPUT->send(); } else if (!$create && $OUTPUT->ajax_call) |