chore(dom) rm " "

This commit is contained in:
coderaiser 2015-02-18 06:10:46 -05:00
parent 43a4f582d2
commit 6f709ccd58

View file

@ -83,10 +83,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
this.show.load = load;
this.show.error = error;
/**
/**
* Function shows loading spinner
* position = {top: true};
*/
*/
function load(position) {
var current,
image = Images.loading(),
@ -174,7 +174,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
var DOM = this;
/**
* add class to element
*
*
* @param element
* @param pClass
*/
@ -212,7 +212,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* check class of element
*
*
* @param element
* @param pClass
*/
@ -220,7 +220,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
var ret,
lClassList = element && element.classList;
if (lClassList )
if (lClassList)
ret = lClassList.contains(pClass);
return ret;
@ -296,7 +296,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* add class=hidden to element
*
*
* @param element
*/
this.hide = function(element) {
@ -322,7 +322,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* private function thet unset currentfile
*
*
* @currentFile
*/
function unsetCurrentFile(currentFile) {
@ -348,7 +348,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
var remoteTmpls, local, remote,
load = DOM.load,
prefix = CloudCmd.PREFIX,
online = config.online && navigator.onLine,
online = config.online && navigator.onLine,
remoteObj = Util.findObjByNameInArr(modules, 'remote'),
module = Util.findObjByNameInArr(remoteObj, name),
@ -592,7 +592,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
isDir = Cmd.isCurrentIsDir(current);
if (isDir)
type ='directory';
type = 'directory';
else
type = 'file';
@ -661,7 +661,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
lHref = this.getCurrentDirPath();
lHref = CloudFunc.rmLastSlash(lHref);
lSubstr = lHref.substr(lHref , lHref.lastIndexOf('/'));
lSubstr = lHref.substr(lHref, lHref.lastIndexOf('/'));
ret = lHref.replace(lSubstr + '/', '') || '/';
return ret;
@ -1034,7 +1034,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
i = 0;
n = files.length;
for (;i < n; i++)
for (; i < n; i++)
DOM.toggleSelectedFile(files[i]);
return Cmd;
@ -1085,7 +1086,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
}
}
/*
/**
* open dialog with expand selection
*/
this.expandSelection = function() {
@ -1095,7 +1096,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
selectByPattern(msg, files);
};
/*
/**
* open dialog with shrink selection
*/
this.shrinkSelection = function() {
@ -1118,10 +1119,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
};
/**
* set title or create title element
*
* set title or create title element
*
* @param name
*/
*/
this.setTitle = function(name) {
if (!Title)
@ -1139,7 +1140,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* current file check
*
*
* @param currentFile
*/
this.isCurrentFile = function(currentFile) {
@ -1153,7 +1154,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* selected file check
*
*
* @param currentFile
*/
this.isSelected = function(pSelected) {
@ -1167,7 +1168,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* check is current file is a directory
*
*
* @param currentFile
*/
this.isCurrentIsDir = function(currentFile) {
@ -1180,19 +1181,19 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* get link from current (or param) file
*
*
* @param currentFile - current file by default
*/
this.getCurrentLink = function(currentFile) {
var current = currentFile || this.getCurrentFile(),
link = this.getByTag( 'a', current);
link = this.getByTag('a', current);
return link[0];
};
/**
* get link from current (or param) file
*
*
* @param currentFile - current file by default
*/
this.getCurrentPath = function(currentFile) {
@ -1207,7 +1208,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* get name from current (or param) file
*
*
* @param currentFile
*/
this.getCurrentName = function(currentFile) {
@ -1254,7 +1255,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* set name from current (or param) file
*
*
* @param name
* @param current
*/
@ -1264,7 +1265,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
FS = CloudFunc.FS,
dir = FS + Info.dirPath;
link.title = name;
link.title = name;
link.innerHTML = CloudFunc.Entity.encode(name);
link.href = dir + name;
@ -1274,7 +1275,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
};
/**
* check storage hash
* check storage hash
*/
this.checkStorageHash = function(name, callback) {
var Storage = DOM.Storage,
@ -1300,10 +1301,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* save data to storage
*
*
* @param name
* @param data
* @param callback
* @param callback
*/
this.saveDataToStorage = function(name, data, hash, callback) {
DOM.Files.get('config', function(error, config) {
@ -1333,10 +1334,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* save data to storage
*
*
* @param name
* @param data
* @param callback
* @param callback
*/
this.getDataFromStorage = function(name, callback) {
DOM.Files.get('config', function(error, config) {
@ -1474,7 +1475,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* remove current file from file table
* @param current
*
*
*/
this.deleteCurrent = function(current) {
var name, next, prev, parent, currentNew;
@ -1526,7 +1527,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
/**
* rename current file
*
*
* @currentFile
*/
this.renameCurrent = function(current) {