feature(dom) CurrentInfo: add filesPassive

This commit is contained in:
coderaiser 2014-01-21 05:51:25 -05:00
parent a7ae86b734
commit ef715e2e7b

View file

@ -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);