fix(dom) setCurrentName: id -> data-name

This commit is contained in:
coderaiser 2014-05-29 10:03:11 -04:00
parent 2e85c784e0
commit 0940046381

View file

@ -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;
};