mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
fix(dom) setCurrentName: getCurrentDirName -> getCurrentDirPath
This commit is contained in:
parent
62fef82338
commit
e4012d1d1d
1 changed files with 3 additions and 2 deletions
|
|
@ -1406,11 +1406,12 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*/
|
||||
this.setCurrentName = function(name, current) {
|
||||
var link = this.getCurrentLink(current),
|
||||
dir = this.getCurrentDirName() + '/',
|
||||
FS = CloudFunc.FS,
|
||||
dir = FS + this.getCurrentDirPath(),
|
||||
panel = DOM.getPanel();
|
||||
|
||||
link.title = link.textContent = name;
|
||||
link.href = name;
|
||||
link.href = dir + name;
|
||||
current.id = name + '(' + panel.id + ')';
|
||||
|
||||
return link;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue