fixed bug with getting back to directory where file was removed

This commit is contained in:
coderaiser 2013-04-21 10:14:23 -04:00
parent 4cb12ee8a9
commit 128bf64e00
3 changed files with 13 additions and 2 deletions

View file

@ -496,9 +496,15 @@ var CloudCommander, Util, DOM = {}, CloudFunc;
if(lCurrent || lSelected)
DOM.RESTfull.delete(lUrl, lSelected, function(){
if(n > 1)
DOM.deleteSelected(lFiles);
DOM.deleteSelected(lFiles);
else
DOM.deleteCurrent(lCurrent);
var lDir = CloudFunc.removeLastSlash(
DOM.getCurrentDirPath()
);
DOM.Cache.remove(lDir);
}, lQuery);
return lCurrent;