diff --git a/html/fs/file.html b/html/fs/file.html index 189d65f1..fd056278 100644 --- a/html/fs/file.html +++ b/html/fs/file.html @@ -1,7 +1,7 @@ <{{ tag }} {{ attribute }}class="{{ className }}"> - - {{ name }} - {{ size }} - {{ owner }} - {{ mode }} + + {{ name }} + {{ size }} + {{ owner }} + {{ mode }} \ No newline at end of file diff --git a/lib/client/dom.js b/lib/client/dom.js index bfee8393..8bd1b292 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -98,7 +98,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; current = DOM.getRefreshButton().parentElement; } else { current = DOM.getCurrentFile(); - current = DOM.getByClass('name', current); + current = DOM.getByDataName('js-name', current); } if (!parent || (parent && parent !== current)) @@ -771,7 +771,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; */ this.getCurrentSize = function(currentFile) { var current = currentFile || Cmd.getCurrentFile(), - size = this.getByClass('size', current); + size = this.getByDataName('js-size', current); /* если это папка - возвращаем слово dir вместо размера*/ size = size @@ -838,7 +838,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; */ this.setCurrentSize = function(size, currentFile) { var current = currentFile || this.getCurrentFile(), - sizeElement = this.getByClass('size', current); + sizeElement = this.getByDataName('js-size', current); sizeElement.textContent = size; @@ -850,7 +850,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; this.getCurrentMode = function(currentFile) { var ret, current = currentFile || this.getCurrentFile(), - lMode = this.getByClass('mode', current); + lMode = this.getByDataName('js-mode', current); ret = lMode.textContent; return ret; @@ -862,7 +862,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; this.getCurrentOwner = function(currentFile) { var ret, current = currentFile || this.getCurrentFile(), - owner = this.getByClass('owner', current); + owner = this.getByDataName('js-owner', current); ret = owner.textContent; @@ -1181,7 +1181,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; */ this.isCurrentIsDir = function(currentFile) { var current = currentFile || this.getCurrentFile(), - fileType = this.getByClass('mini-icon', current), + fileType = this.getByDataName('js-type', current), ret = this.isContainClass(fileType, 'directory'); return ret;