From: Michael M Slusarz Date: Tue, 7 Apr 2009 04:18:25 +0000 (-0600) Subject: Fix Rename/Create Subfolder. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d6fd1cbb94d01a59db340ed1b2afc31ca18f21ec;p=horde.git Fix Rename/Create Subfolder. --- diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index 66fcd99be..b882c5762 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -1768,6 +1768,7 @@ var DimpBase = { if (val) { switch (mode) { case 'rename': + folder = folder.up('LI'); if (folder.readAttribute('l') != val) { action = 'RenameFolder'; params = { old_name: folder.readAttribute('mbox'), @@ -1781,10 +1782,11 @@ var DimpBase = { action = 'CreateFolder'; params = { view: val }; if (mode == 'createsub') { - params.parent = folder.readAttribute('mbox'); + params.parent = folder.up('LI').readAttribute('mbox'); } break; } + if (action) { DimpCore.doAction(action, params, null, this.bcache.get('folderC') || this.bcache.set('folderC', this._folderCallback.bind(this))); }