mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(dom) processFiles: remove from storage path with slash
This commit is contained in:
parent
ad29806611
commit
8e7cd876a0
1 changed files with 16 additions and 14 deletions
|
|
@ -1529,22 +1529,24 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
};
|
||||
|
||||
opFunc(files, function() {
|
||||
var panel = DOM.getPanel(),
|
||||
panelPassive = DOM.getPanel(true),
|
||||
id = panelPassive.id,
|
||||
dotDot = DOM.getById( '..(' + id + ')');
|
||||
var path = CloudFunc.rmLastSlash(from);
|
||||
|
||||
DOM.Storage.remove(from);
|
||||
|
||||
if (!data) {
|
||||
DOM.setCurrentFile(dotDot);
|
||||
DOM.Storage.remove(path, function() {
|
||||
var panel = DOM.getPanel(),
|
||||
panelPassive = DOM.getPanel(true),
|
||||
id = panelPassive.id,
|
||||
dotDot = DOM.getById( '..(' + id + ')');
|
||||
|
||||
CloudCmd.refresh(dotDot, panel);
|
||||
CloudCmd.refresh(dotDot, panelPassive);
|
||||
} else {
|
||||
CloudCmd.refresh(dotDot, panelPassive);
|
||||
CloudCmd.refresh(dotDot, panel);
|
||||
}
|
||||
if (!data) {
|
||||
DOM.setCurrentFile(dotDot);
|
||||
|
||||
CloudCmd.refresh(dotDot, panel);
|
||||
CloudCmd.refresh(dotDot, panelPassive);
|
||||
} else {
|
||||
CloudCmd.refresh(dotDot, panelPassive);
|
||||
CloudCmd.refresh(dotDot, panel);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue