mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
refactor(cloudfunc) LEFT_PANEL -> PANEL_LEFT
This commit is contained in:
parent
88cda37b2c
commit
16d4fc6c46
3 changed files with 13 additions and 15 deletions
|
|
@ -270,8 +270,8 @@
|
|||
var lPanel, lList,
|
||||
config = main.config,
|
||||
minify = config.minify,
|
||||
LEFT = CloudFunc.LEFT_PANEL,
|
||||
RIGHT = CloudFunc.RIGHT_PANEL;
|
||||
LEFT = CloudFunc.PANEL_LEFT,
|
||||
RIGHT = CloudFunc.PANEL_RIGHT;
|
||||
|
||||
if (error)
|
||||
main.sendError(p, error);
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ var Util, DOM, CloudFunc;
|
|||
function CloudCmdProto(Util, DOM, CloudFunc) {
|
||||
var Key, Config, Modules, Extensions,
|
||||
FileTemplate, PathTemplate, LinkTemplate, Listeners,
|
||||
Info = DOM.CurrentInfo,
|
||||
CloudCmd = this,
|
||||
Storage = DOM.Storage;
|
||||
|
||||
|
|
@ -233,8 +234,8 @@ var Util, DOM, CloudFunc;
|
|||
var LIB = CloudCmd.LIBDIR,
|
||||
LIBCLIENT = CloudCmd.LIBDIRCLIENT,
|
||||
files = DOM.getFiles(),
|
||||
LEFT = CloudFunc.LEFT_PANEL,
|
||||
RIGHT = CloudFunc.RIGHT_PANEL;
|
||||
LEFT = CloudFunc.PANEL_LEFT,
|
||||
RIGHT = CloudFunc.PANEL_RIGHT;
|
||||
|
||||
/* выделяем строку с первым файлом */
|
||||
if (files)
|
||||
|
|
@ -458,25 +459,23 @@ var Util, DOM, CloudFunc;
|
|||
*/
|
||||
function getJSONfromFileTable() {
|
||||
var current, name, size, owner, mode, ret,
|
||||
LEFT = CloudFunc.LEFT_PANEL,
|
||||
left = DOM.getById(LEFT),
|
||||
path = DOM.getCurrentDirPath(),
|
||||
infoFiles = Info.files,
|
||||
|
||||
fileTable = {
|
||||
fileTable = {
|
||||
path : path,
|
||||
files : []
|
||||
},
|
||||
|
||||
files = fileTable.files,
|
||||
|
||||
li = DOM.getByTag('li', left),
|
||||
i, n = li.length;
|
||||
i, n = infoFiles.length;
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
current = li[i];
|
||||
current = infoFiles[i];
|
||||
name = DOM.getCurrentName(current);
|
||||
size = DOM.getCurrentSize(current);
|
||||
owner = DOM.getCurrentOwner(current);
|
||||
owner = DOM.getCurrentOwner(current);
|
||||
mode = DOM.getCurrentMode(current);
|
||||
|
||||
mode = CloudFunc.getNumericPermissions(mode);
|
||||
|
|
@ -496,8 +495,7 @@ var Util, DOM, CloudFunc;
|
|||
}
|
||||
|
||||
this.goToParentDir = function() {
|
||||
var Info = DOM.CurrentInfo,
|
||||
path = Info.dirPath,
|
||||
var path = Info.dirPath,
|
||||
parentPath = Info.parentDirPath;
|
||||
|
||||
if (path !== parentPath) {
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ var Util;
|
|||
this.REFRESHICON = 'refresh-icon';
|
||||
|
||||
/* id панелей с файлами */
|
||||
this.LEFT_PANEL = 'js-left';
|
||||
this.RIGHT_PANEL = 'js-right';
|
||||
this.PANEL_LEFT = 'js-left';
|
||||
this.PANEL_RIGHT = 'js-right';
|
||||
|
||||
this.getJoinURL = function(names) {
|
||||
var url, isContain,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue