mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
fix(dom) setCurrentName: id -> data-name
This commit is contained in:
parent
2e85c784e0
commit
0940046381
1 changed files with 5 additions and 4 deletions
|
|
@ -1131,14 +1131,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
* @param current
|
||||
*/
|
||||
this.setCurrentName = function(name, current) {
|
||||
var link = this.getCurrentLink(current),
|
||||
var Info = CurrentInfo,
|
||||
link = Info.link,
|
||||
FS = CloudFunc.FS,
|
||||
dir = FS + this.getCurrentDirPath(),
|
||||
panel = DOM.getPanel();
|
||||
dir = FS + Info.dirPath;
|
||||
|
||||
link.title = link.textContent = name;
|
||||
link.href = dir + name;
|
||||
current.id = name + '(' + panel.id + ')';
|
||||
|
||||
current.setAttribute('data-name', 'js-file-' + name);
|
||||
|
||||
return link;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue