refactor(client) refresh

This commit is contained in:
coderaiser 2014-02-14 10:48:57 -05:00
parent 2dcca77c78
commit 956ca1dd62

View file

@ -312,15 +312,15 @@ var Util, DOM, CloudFunc;
});
};
this.refresh = function(pCurrent) {
var lNEEDREFRESH = true,
lPanel = pCurrent && pCurrent.parentElement,
lPath = DOM.getCurrentDirPath(lPanel),
lLink = CloudFunc.FS + lPath,
lNotSlashlLink = CloudFunc.rmLastSlash(lLink),
lLoad = CloudCmd.loadDir(lNotSlashlLink, lNEEDREFRESH);
this.refresh = function(current) {
var NEEDREFRESH = true,
panel = current && current.parentElement,
path = DOM.getCurrentDirPath(panel),
link = CloudFunc.FS + path,
notSlashlLink = CloudFunc.rmLastSlash(link),
load = CloudCmd.loadDir(notSlashlLink, NEEDREFRESH);
lLoad();
load();
};
/**