mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(dom) processFiles
This commit is contained in:
parent
e36df63a0b
commit
29c63f1f2b
1 changed files with 4 additions and 6 deletions
|
|
@ -1623,7 +1623,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
|
||||
ok = from !== to && to;
|
||||
|
||||
if (ok && (shouldAsk && sameName))
|
||||
if (ok && shouldAsk && sameName)
|
||||
ok = Dialog.confirm(Util.render('"{{ name }}" already exist. Overwrite?', {
|
||||
name: name
|
||||
}));
|
||||
|
|
@ -1641,8 +1641,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
var path = CloudFunc.rmLastSlash(from);
|
||||
|
||||
DOM.Storage.remove(path, function() {
|
||||
var panel = DOM.getPanel(),
|
||||
panelPassive = DOM.getPanel({active: false}),
|
||||
var panel = CurrentInfo.panel,
|
||||
panelPassive = CurrentInfo.panelPassive,
|
||||
setCurrent = function() {
|
||||
var current;
|
||||
|
||||
|
|
@ -1653,9 +1653,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
DOM.setCurrentFile(current);
|
||||
};
|
||||
|
||||
CloudCmd.refresh(panelPassive, {noCurrent: true}, function() {
|
||||
|
||||
});
|
||||
CloudCmd.refresh(panelPassive, {noCurrent: true});
|
||||
|
||||
CloudCmd.refresh(panel, setCurrent);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue