diff --git a/lib/client.js b/lib/client.js index fa047fa3..61882fe1 100644 --- a/lib/client.js +++ b/lib/client.js @@ -64,10 +64,11 @@ var Util, DOM, CloudFunc, join; if (pathParams) link = pathParams; - if (panel && panel !== Info.panel) { - DOM.changePanel(); - panelChanged = true; - } + if (!params.noCurrent) + if (panel && panel !== Info.panel) { + DOM.changePanel(); + panelChanged = true; + } if (panelChanged || isRefresh) imgPosition = 'top'; @@ -325,6 +326,9 @@ var Util, DOM, CloudFunc, join; options = {}; } + if (typeof callback !== 'function') + throw(Error('callback should be function!')); + CloudCmd.loadDir({ path : notSlashlLink, isRefresh : NEEDREFRESH, diff --git a/lib/client/dom.js b/lib/client/dom.js index 5df2ad45..493fe0e3 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1636,7 +1636,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; DOM.setCurrentFile(current); }; - CloudCmd.refresh(panelPassive, {noCurrent: true}); + CloudCmd.refresh(panelPassive, {noCurrent: true}, function() { + + }); + CloudCmd.refresh(panel, setCurrent); }); });