Fix lint errors

pull/1/head
yflory 8 years ago
parent 4278ac7637
commit 26dd4ea11f

@ -775,7 +775,7 @@ define([
} }
}); });
}; };
var fixFilesData = function (fd) { var fixFilesData = function () {
if (!$.isArray(files[FILES_DATA])) { debug("FILES_DATA was not an array"); files[FILES_DATA] = []; } if (!$.isArray(files[FILES_DATA])) { debug("FILES_DATA was not an array"); files[FILES_DATA] = []; }
var fd = files[FILES_DATA]; var fd = files[FILES_DATA];
var rootFiles = getRootFiles(); var rootFiles = getRootFiles();

@ -283,13 +283,11 @@ define([
} }
}; };
var createLagElement = function ($container) { var createLagElement = function () {
var $lag = $('<span>', { var $lag = $('<span>', {
'class': LAG_ELEM_CLS, 'class': LAG_ELEM_CLS,
id: uid(), id: uid(),
}); });
// Now added in createUserAdmin
//$container.prepend($lag);
return $lag[0]; return $lag[0];
}; };
@ -483,7 +481,7 @@ define([
var userListElement = config.userData ? createUserList(toolbar.find('.' + LEFTSIDE_CLS), readOnly) : undefined; var userListElement = config.userData ? createUserList(toolbar.find('.' + LEFTSIDE_CLS), readOnly) : undefined;
var $titleElement = createTitle(toolbar.find('.' + TOP_CLS), readOnly, config.title, Cryptpad); var $titleElement = createTitle(toolbar.find('.' + TOP_CLS), readOnly, config.title, Cryptpad);
var $linkElement = createLinkToMain(toolbar.find('.' + TOP_CLS)); var $linkElement = createLinkToMain(toolbar.find('.' + TOP_CLS));
var lagElement = createLagElement($userAdminElement); var lagElement = createLagElement();
var $userAdminElement = createUserAdmin(toolbar.find('.' + TOP_CLS), lagElement); var $userAdminElement = createUserAdmin(toolbar.find('.' + TOP_CLS), lagElement);
var spinner = createSpinner($userAdminElement); var spinner = createSpinner($userAdminElement);
var userData = config.userData; var userData = config.userData;

@ -135,7 +135,7 @@ define([
return Cryptpad.getUserHash() === APP.hash || localStorage.FS_hash === APP.hash; return Cryptpad.getUserHash() === APP.hash || localStorage.FS_hash === APP.hash;
}; };
var isWorkgroup = function () { var isWorkgroup = function () {
return files.workgroup == 1; return files.workgroup === 1;
}; };
config.workgroup = isWorkgroup(); config.workgroup = isWorkgroup();
@ -1026,7 +1026,7 @@ define([
title : Messages.fm_noname, title : Messages.fm_noname,
atime : 0, atime : 0,
ctime : 0 ctime : 0
} };
} }
if (prop === 'type') { if (prop === 'type') {
var hrefData = Cryptpad.parsePadUrl(el); var hrefData = Cryptpad.parsePadUrl(el);
@ -1063,7 +1063,7 @@ define([
title : Messages.fm_noname, title : Messages.fm_noname,
atime : 0, atime : 0,
ctime : 0 ctime : 0
} };
} }
if (prop === 'atime' || prop === 'ctime') { if (prop === 'atime' || prop === 'ctime') {
return new Date(e[prop]); return new Date(e[prop]);

Loading…
Cancel
Save