feature(dom) CurrentInfo: add isOnePanel

This commit is contained in:
coderaiser 2015-05-27 03:24:16 -04:00
parent 479c1553b8
commit d51cd46d1d

View file

@ -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');
};
},