mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(dom) getCurrentPath: wrong path when width changed panels: two -> one
This commit is contained in:
parent
3bf1811998
commit
ddfccd54fb
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue