fix(dom) getCurrentPath: wrong path when width changed panels: two -> one

This commit is contained in:
coderaiser 2014-07-07 06:35:55 -04:00
parent 3bf1811998
commit ddfccd54fb

View file

@ -1109,10 +1109,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
* @param currentFile - current file by default
*/
this.getCurrentPath = function(currentFile) {
var name = this.getCurrentName(currentFile),
path = this.getCurrentDirPath();
var current = currentFile || DOM.getCurrentFile(),
element = DOM.getByTag('a', current)[0],
path = element.getAttribute('href');
return path + name;
path = Util.rmStr(path, CloudFunc.FS);
return path;
};
/**