fix(dom) getCurrentData: this -> Cmd

This commit is contained in:
coderaiser 2013-12-16 13:55:52 +00:00
parent e39ca3e866
commit f60f0e1170

View file

@ -1359,7 +1359,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
*/
this.getCurrentSize = function(pCurrentFile) {
var lRet,
lCurrent = pCurrentFile || this.getCurrentFile(),
lCurrent = pCurrentFile || Cmd.getCurrentFile(),
lSize = this.getByClass('size', lCurrent);
lSize = lSize[0].textContent;
/* если это папка - возвращаем слово dir вместо размера*/
@ -1489,7 +1489,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
this.getCurrentData = function(pCallBack, pCurrentFile) {
var lParams,
lHash,
lCurrentFile = pCurrentFile ? pCurrentFile : this.getCurrentFile(),
lCurrentFile = pCurrentFile ? pCurrentFile : Cmd.getCurrentFile(),
lPath = DOM.getCurrentPath(lCurrentFile),
isDir = DOM.isCurrentIsDir(lCurrentFile),