From ef715e2e7bc0183d414334ce827fe9ec7d51264d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 21 Jan 2014 05:51:25 -0500 Subject: [PATCH] feature(dom) CurrentInfo: add filesPassive --- lib/client/dom.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 1a4b86c5..347e23cc 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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);