mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(dom) setCurrent: set id of li to
This commit is contained in:
parent
9236b99190
commit
85143da674
1 changed files with 10 additions and 7 deletions
|
|
@ -1391,16 +1391,19 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
/**
|
||||
* set name from current (or param) file
|
||||
*
|
||||
* @param pCurrentFile
|
||||
* @param name
|
||||
* @param current
|
||||
*/
|
||||
this.setCurrentName = function(pName, pCurrentFile) {
|
||||
var lLink = this.getCurrentLink( pCurrentFile ),
|
||||
lDir = this.getCurrentDirName() + '/';
|
||||
this.setCurrentName = function(name, current) {
|
||||
var link = this.getCurrentLink(current),
|
||||
dir = this.getCurrentDirName() + '/',
|
||||
panel = DOM.getPanel();
|
||||
|
||||
lLink.title = lLink.textContent = pName;
|
||||
lLink.href = lDir + pName;
|
||||
link.title = link.textContent = name;
|
||||
link.href = dir + name;
|
||||
current.id = name + '(' + panel.id + ')';
|
||||
|
||||
return lLink;
|
||||
return link;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue