mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
refactor(client) createFileTable
This commit is contained in:
parent
1cf4f0a146
commit
1f0d375d2e
1 changed files with 4 additions and 7 deletions
|
|
@ -415,11 +415,6 @@ var Util, DOM, CloudFunc;
|
|||
panel = DOM.getPanel(),
|
||||
/* getting current element if was refresh */
|
||||
path = DOM.getCurrentDirPath(panel),
|
||||
|
||||
current = DOM.getCurrentFile(),
|
||||
dir = DOM.getCurrentDirName(),
|
||||
|
||||
name = DOM.getCurrentName(current),
|
||||
wasRefresh = path === json.path,
|
||||
funcs = [
|
||||
CloudCmd.getFileTemplate,
|
||||
|
|
@ -428,8 +423,10 @@ var Util, DOM, CloudFunc;
|
|||
];
|
||||
|
||||
Util.asyncCall(funcs, function(templFile, templPath, templLink) {
|
||||
var n, found, varCurrent, varName,
|
||||
i = panel.childNodes.length;
|
||||
var n, found, varCurrent, varName, current,
|
||||
dir = DOM.getCurrentDirName(),
|
||||
name = DOM.getCurrentName(),
|
||||
i = panel.childNodes.length;
|
||||
|
||||
while(i--)
|
||||
panel.removeChild(panel.lastChild);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue