mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(file) add data-name
This commit is contained in:
parent
677553f5f0
commit
4e7d460716
2 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue