Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/js/app.js3
-rw-r--r--program/steps/settings/func.inc1
2 files changed, 3 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 56a0e9703..8df199f98 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -7344,7 +7344,8 @@ function rcube_webmail()
this.show_folder = function(folder, path, force)
{
var win, target = window,
- url = '&_action=edit-folder&_mbox='+urlencode(folder);
+ action = folder === '' ? 'add' : 'edit',
+ url = '&_action=' + action + '-folder&_mbox=' + urlencode(folder);
if (path)
url += '&_path='+urlencode(path);
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index ff30fcf66..78c9a3eee 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -40,6 +40,7 @@ $RCMAIL->register_action_map(array(
'unsubscribe' => 'folders.inc',
'purge' => 'folders.inc',
'folder-size' => 'folders.inc',
+ 'add-folder' => 'edit_folder.inc',
'add-identity' => 'edit_identity.inc',
'add-response' => 'edit_response.inc',
'save-response' => 'edit_response.inc',