From 26dd4ea11fe5e21b62aabea21017ebbbaaa0acad Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 10 Jan 2017 15:33:21 +0100 Subject: [PATCH] Fix lint errors --- www/common/fileObject.js | 2 +- www/common/toolbar.js | 6 ++---- www/drive/main.js | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/www/common/fileObject.js b/www/common/fileObject.js index 951af5e88..7398ffc7d 100644 --- a/www/common/fileObject.js +++ b/www/common/fileObject.js @@ -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] = []; } var fd = files[FILES_DATA]; var rootFiles = getRootFiles(); diff --git a/www/common/toolbar.js b/www/common/toolbar.js index 45dfa6c1f..a5a82f0f9 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -283,13 +283,11 @@ define([ } }; - var createLagElement = function ($container) { + var createLagElement = function () { var $lag = $('', { 'class': LAG_ELEM_CLS, id: uid(), }); - // Now added in createUserAdmin - //$container.prepend($lag); return $lag[0]; }; @@ -483,7 +481,7 @@ define([ var userListElement = config.userData ? createUserList(toolbar.find('.' + LEFTSIDE_CLS), readOnly) : undefined; var $titleElement = createTitle(toolbar.find('.' + TOP_CLS), readOnly, config.title, Cryptpad); var $linkElement = createLinkToMain(toolbar.find('.' + TOP_CLS)); - var lagElement = createLagElement($userAdminElement); + var lagElement = createLagElement(); var $userAdminElement = createUserAdmin(toolbar.find('.' + TOP_CLS), lagElement); var spinner = createSpinner($userAdminElement); var userData = config.userData; diff --git a/www/drive/main.js b/www/drive/main.js index fff4a74ff..ab3446f35 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -135,7 +135,7 @@ define([ return Cryptpad.getUserHash() === APP.hash || localStorage.FS_hash === APP.hash; }; var isWorkgroup = function () { - return files.workgroup == 1; + return files.workgroup === 1; }; config.workgroup = isWorkgroup(); @@ -1026,7 +1026,7 @@ define([ title : Messages.fm_noname, atime : 0, ctime : 0 - } + }; } if (prop === 'type') { var hrefData = Cryptpad.parsePadUrl(el); @@ -1063,7 +1063,7 @@ define([ title : Messages.fm_noname, atime : 0, ctime : 0 - } + }; } if (prop === 'atime' || prop === 'ctime') { return new Date(e[prop]);