mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fixed bug with getting back to directory where file was removed
This commit is contained in:
parent
4cb12ee8a9
commit
128bf64e00
3 changed files with 13 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue