mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(dom) processFiles: change panel in wrong way
This commit is contained in:
parent
e59745c22c
commit
1103ea7e4d
1 changed files with 8 additions and 8 deletions
|
|
@ -1633,17 +1633,18 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
var panel = DOM.getPanel(),
|
||||
panelPassive = DOM.getPanel({active: false}),
|
||||
setCurrent = function() {
|
||||
var current = DOM.getCurrentByName(name);
|
||||
var current;
|
||||
|
||||
if (!name)
|
||||
name = data.names[0];
|
||||
|
||||
current = DOM.getCurrentByName(name);
|
||||
DOM.setCurrentFile(current);
|
||||
};
|
||||
|
||||
if (!data) {
|
||||
CloudCmd.refresh(panel);
|
||||
CloudCmd.refresh(panelPassive, setCurrent);
|
||||
} else {
|
||||
CloudCmd.refresh(panelPassive);
|
||||
CloudCmd.refresh(panelPassive, function() {
|
||||
CloudCmd.refresh(panel, setCurrent);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -1656,7 +1657,6 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
}, data);
|
||||
};
|
||||
|
||||
|
||||
this.moveFiles = function(data) {
|
||||
processFiles({
|
||||
move: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue