refactor(dom) promptDeleteSelected

This commit is contained in:
coderaiser 2013-12-23 14:46:07 +00:00
parent 1f6148ef79
commit 3580b3a94e

View file

@ -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;