diff --git a/lib/client/dom.js b/lib/client/dom.js index 40f90a34..2e11803b 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1252,16 +1252,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; if (lCurrent || lSelected) RESTful.delete(lUrl, lSelected, function() { + var dirPath = CurrentInfo.dirPath; + dir = CloudFunc.rmLastSlash(dirPath); + if (n > 1) DOM.deleteSelected(lFiles); else DOM.deleteCurrent(lCurrent); - var lDir = CloudFunc.rmLastSlash( - DOM.getCurrentDirPath() - ); - - Storage.remove(lDir); + Storage.remove(dir); }, lQuery); return lCurrent;