mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
feature(dom) CurrentInfo: add filesPassive
This commit is contained in:
parent
a7ae86b734
commit
ef715e2e7b
1 changed files with 6 additions and 1 deletions
|
|
@ -1809,6 +1809,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
current = pCurrent || Cmd.getCurrentFile(),
|
||||
files = current.parentElement,
|
||||
panel = files.parentElement,
|
||||
|
||||
panelPassive = Cmd.getPanel({active:false}),
|
||||
filesPassive = DOM.getFiles(panelPassive),
|
||||
|
||||
name = Cmd.getCurrentName(current);
|
||||
|
||||
info.dir = Cmd.getCurrentDirName();
|
||||
|
|
@ -1816,6 +1820,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
info.element = current;
|
||||
info.ext = Util.getExtension(name);
|
||||
info.files = files.children,
|
||||
info.filesPassive = filesPassive,
|
||||
info.first = files.firstChild;
|
||||
info.getData = Cmd.getCurrentData;
|
||||
info.last = files.lastChild;
|
||||
|
|
@ -1824,7 +1829,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
info.name = name;
|
||||
info.path = Cmd.getCurrentPath(current);
|
||||
info.panel = panel;
|
||||
info.panelPassive = Cmd.getPanel({active:false});
|
||||
info.panelPassive = panelPassive
|
||||
info.size = Cmd.getCurrentSize(current);
|
||||
info.isDir = Cmd.isCurrentIsDir();
|
||||
info.isSelected = Cmd.isSelected(current);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue