From 25a7df7f4b593a864f5a359e66d8dac363008300 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 27 Oct 2017 09:20:30 +0200 Subject: [PATCH] Use action=add-folder when creating a new folder --- program/js/app.js | 3 ++- program/steps/settings/func.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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',