mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(dom) promptDeleteSelected
This commit is contained in:
parent
1f6148ef79
commit
3580b3a94e
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue