mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(dom) add setCurrentByName
This commit is contained in:
parent
dabf142759
commit
2c024d10ba
3 changed files with 11 additions and 18 deletions
|
|
@ -426,13 +426,10 @@
|
|||
var panel = Info.panel,
|
||||
panelPassive = Info.panelPassive,
|
||||
setCurrent = function() {
|
||||
var current;
|
||||
|
||||
if (!name)
|
||||
name = data.names[0];
|
||||
|
||||
current = DOM.getCurrentByName(name);
|
||||
DOM.setCurrentFile(current);
|
||||
DOM.setCurrentByName(name);
|
||||
};
|
||||
|
||||
if (!Info.isOnePanel)
|
||||
|
|
@ -496,9 +493,7 @@
|
|||
|
||||
op(fileFrom, function(error) {
|
||||
!error && CloudCmd.refresh(null, function() {
|
||||
var file = DOM.getCurrentByName(name);
|
||||
|
||||
DOM.setCurrentFile(file);
|
||||
DOM.setCurrentByName(name);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue