mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(dom) updateCurrentInfo: add files
This commit is contained in:
parent
aa4476a2e1
commit
19e71c5f95
1 changed files with 7 additions and 4 deletions
|
|
@ -2156,21 +2156,24 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
Util.exec(callback, ext);
|
||||
});
|
||||
};
|
||||
|
||||
this.CurrentInfo = CurrentInfo,
|
||||
|
||||
this.updateCurrentInfo = function(pCurrent) {
|
||||
var info = Cmd.CurrentInfo,
|
||||
current = pCurrent || Cmd.getCurrentFile(),
|
||||
panel = Cmd.getPanel(),
|
||||
files = current.parentElement,
|
||||
panel = files.parentElement,
|
||||
name = Cmd.getCurrentName(current);
|
||||
|
||||
info.dir = Cmd.getCurrentDirName();
|
||||
info.dirPath = Cmd.getCurrentDirPath();
|
||||
info.element = current;
|
||||
info.ext = Util.getExtension(name);
|
||||
info.files = Cmd.getFiles(panel);
|
||||
info.first = current.parentElement.firstChild;
|
||||
info.files = files,
|
||||
info.first = files.firstChild;
|
||||
info.getData = Cmd.getCurrentData;
|
||||
info.last = current.parentElement.lastChild;
|
||||
info.last = files.lastChild;
|
||||
info.link = Cmd.getCurrentLink(current);
|
||||
info.mode = Cmd.getCurrentMode(current);
|
||||
info.name = name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue