mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(client) refresh
This commit is contained in:
parent
2dcca77c78
commit
956ca1dd62
1 changed files with 8 additions and 8 deletions
|
|
@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue