Fix lint errors
This commit is contained in:
@@ -1511,7 +1511,7 @@ define([
|
||||
}
|
||||
};
|
||||
// _WORKGROUP_ : do not display title, atime and ctime in workgroups since we don't have files data
|
||||
var getFileListHeader = function (displayTitle) {
|
||||
var getFileListHeader = function () {
|
||||
var $fihElement = $('<li>', {'class': 'file-header header listElement element'});
|
||||
//var $fihElement = $('<span>', {'class': 'element'}).appendTo($fileHeader);
|
||||
var $fhIcon = $('<span>', {'class': 'icon'});
|
||||
@@ -1659,7 +1659,6 @@ define([
|
||||
var keys = filesOp.getFiles([FILES_DATA]);
|
||||
var sortedFiles = sortElements(false, [FILES_DATA], keys, Cryptpad.getLSAttribute(SORT_FILE_BY), !getSortFileDesc(), true);
|
||||
sortedFiles.forEach(function (id) {
|
||||
var file = filesOp.getFileData(id);
|
||||
var $icon = getFileIcon(id);
|
||||
var ro = filesOp.isReadOnlyFile(id);
|
||||
// ro undefined maens it's an old hash which doesn't support read-only
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
define([
|
||||
'/common/cryptpad-common.js',
|
||||
'/common/userObject.js',
|
||||
'json.sortify',
|
||||
],function (Cryptpad, FO, sortify) {
|
||||
],function (Cryptpad, FO) {
|
||||
var module = {};
|
||||
|
||||
var href1 = "/pad/#/1/edit/a798u+miu2tg5b-QaP9SvA/UIPoGUPewZscBUFhNIi+eBBM/";
|
||||
@@ -126,7 +125,7 @@ define([
|
||||
&& files.filesData[files.trash.DeletedF[1].element].filename === "DeletedF"
|
||||
&& typeof files.template[0] === "number"
|
||||
&& typeof files.filesData[files.template[0]] === "object"
|
||||
&& !files.filesData[files.template[0]].filename
|
||||
&& !files.filesData[files.template[0]].filename;
|
||||
return cb(res);
|
||||
}, "DRIVE1: migration and fixFiles without unsorted");
|
||||
|
||||
@@ -169,7 +168,7 @@ define([
|
||||
}
|
||||
var fileKey = Object.keys(files.root.Folder2)[0];
|
||||
var fileKey2 = Object.keys(files.root).filter(function (x) {
|
||||
return typeof files.root[x] === "number"
|
||||
return typeof files.root[x] === "number";
|
||||
})[0];
|
||||
if (!fileKey || !fileKey2) { return cb(); }
|
||||
var fileId = files.root.Folder2[fileKey];
|
||||
@@ -179,7 +178,7 @@ define([
|
||||
&& files.filesData[fileId].filename === "FileName"
|
||||
&& typeof fileId2 === "number"
|
||||
&& typeof files.filesData[fileId2] === "object"
|
||||
&& !files.filesData[fileId2].filename
|
||||
&& !files.filesData[fileId2].filename;
|
||||
return cb(res);
|
||||
}, "DRIVE2: migration and fixFiles with unsorted");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user