fix(dom) setCurrentName: getCurrentDirName -> getCurrentDirPath

This commit is contained in:
coderaiser 2014-05-08 16:32:52 -04:00
parent 62fef82338
commit e4012d1d1d

View file

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