Commit b932fa55 authored by Tristan Cavelier's avatar Tristan Cavelier

fix jslint errors

parent e9919b7f
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
* @return {String} The original name * @return {String} The original name
*/ */
function restoreName(secured_name) { function restoreName(secured_name) {
return decodeURI(secured_name.replace(/%3F/ig, '?').replace(/%2F/ig, '/')); return decodeURI(secured_name.replace(/%3F/ig, '?').replace(/%2F/ig, '/'));
} }
/** /**
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
*/ */
var ajax = { var ajax = {
"none": function (method, type, url, data) { "none": function (method, type, url, data) {
var headers; var headers = {};
if (method === "PROPFIND") { if (method === "PROPFIND") {
headers.Depth = "1"; headers.Depth = "1";
} }
...@@ -337,9 +337,9 @@ ...@@ -337,9 +337,9 @@
textContent.split('/').slice(-1)[0]; textContent.split('/').slice(-1)[0];
row.id = fileNameToIds(row.id); row.id = fileNameToIds(row.id);
if (row.id.length !== 1) { if (row.id.length !== 1) {
row = undefined; row = undefined;
} else { } else {
row.id = row.id[0]; row.id = row.id[0];
} }
if (row !== undefined) { if (row !== undefined) {
rows[rows.length] = row; rows[rows.length] = row;
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
function list2DocumentsTest(answer) { function list2DocumentsTest(answer) {
if (answer && answer.data && Array.isArray(answer.data.rows)) { if (answer && answer.data && Array.isArray(answer.data.rows)) {
answer.data.rows.sort(function (a, b) { answer.data.rows.sort(function (a) {
return a.id === "b" ? 1 : 0; return a.id === "b" ? 1 : 0;
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment