fix(dom) processFiles: remove from storage path with slash

This commit is contained in:
coderaiser 2014-08-28 04:24:47 -04:00
parent ad29806611
commit 8e7cd876a0

View file

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