mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(dom) CurrentInfo: add isOnePanel
This commit is contained in:
parent
479c1553b8
commit
d51cd46d1d
1 changed files with 6 additions and 1 deletions
|
|
@ -1662,7 +1662,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
DOM.setCurrentFile(current);
|
||||
};
|
||||
|
||||
CloudCmd.refresh(panelPassive, {noCurrent: true}, function() {});
|
||||
if (!CurrentInfo.isOnePanel)
|
||||
CloudCmd.refresh(panelPassive, {noCurrent: true}, function() {});
|
||||
|
||||
CloudCmd.refresh(panel, setCurrent);
|
||||
});
|
||||
});
|
||||
|
|
@ -1872,6 +1874,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
info.size = Cmd.getCurrentSize(current);
|
||||
info.isDir = Cmd.isCurrentIsDir();
|
||||
info.isSelected = Cmd.isSelected(current);
|
||||
info.isOnePanel =
|
||||
info.panel.getAttribute('data-name') ===
|
||||
info.panelPassive.getAttribute('data-name');
|
||||
};
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue