Add jshint
This commit is contained in:
4
assets/js/app.min.js
vendored
4
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -11,22 +11,21 @@ KB.component('chart-project-burndown', function (containerElement, options) {
|
||||
|
||||
for (var j = 0; j < metrics[i].length; j++) {
|
||||
|
||||
if (i == 0) {
|
||||
if (i === 0) {
|
||||
columns.push([metrics[i][j]]);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
columns[j + 1].push(metrics[i][j]);
|
||||
|
||||
if (j > 0) {
|
||||
|
||||
if (columns[0][i] == undefined) {
|
||||
if (columns[0][i] === undefined) {
|
||||
columns[0].push(0);
|
||||
}
|
||||
|
||||
columns[0][i] += metrics[i][j];
|
||||
}
|
||||
|
||||
if (j == 0) {
|
||||
if (j === 0) {
|
||||
categories.push(outputFormat(inputFormat.parse(metrics[i][j])));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,18 +12,17 @@ KB.component('chart-project-cumulative-flow', function (containerElement, option
|
||||
|
||||
for (var j = 0; j < metrics[i].length; j++) {
|
||||
|
||||
if (i == 0) {
|
||||
if (i === 0) {
|
||||
columns.push([metrics[i][j]]);
|
||||
|
||||
if (j > 0) {
|
||||
groups.push(metrics[i][j]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
|
||||
columns[j].push(metrics[i][j]);
|
||||
|
||||
if (j == 0) {
|
||||
if (j === 0) {
|
||||
categories.push(outputFormat(inputFormat.parse(metrics[i][j])));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ KB.component('external-task-view', function (containerElement, options) {
|
||||
KB.dom(containerElement).html('<div id="external-task-view">' + data + '</div>');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
var KB = {
|
||||
components: {},
|
||||
utils: {},
|
||||
|
||||
@@ -135,7 +135,7 @@ Kanboard.App.prototype.datePicker = function() {
|
||||
Kanboard.App.prototype.tagAutoComplete = function() {
|
||||
$(".tag-autocomplete").select2({
|
||||
tags: true
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
Kanboard.App.prototype.autoComplete = function() {
|
||||
@@ -144,7 +144,7 @@ Kanboard.App.prototype.autoComplete = function() {
|
||||
var field = input.data("dst-field");
|
||||
var extraField = input.data("dst-extra-field");
|
||||
|
||||
if ($('#form-' + field).val() == '') {
|
||||
if ($('#form-' + field).val() === '') {
|
||||
input.parent().find("button[type=submit]").attr('disabled','disabled');
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ Kanboard.App.prototype.isVisible = function() {
|
||||
property = "webkitVisibilityState";
|
||||
}
|
||||
|
||||
if (property != "") {
|
||||
if (property !== "") {
|
||||
return document[property] == "visible";
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ Kanboard.BoardDragAndDrop.prototype.dragAndDrop = function() {
|
||||
|
||||
if (isMobile.any) {
|
||||
$(".task-board-sort-handle").css("display", "inline");
|
||||
params["handle"] = ".task-board-sort-handle";
|
||||
params.handle = ".task-board-sort-handle";
|
||||
}
|
||||
|
||||
// Set dropzone height to the height of the table cell
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
'use strict';
|
||||
|
||||
var Kanboard = {};
|
||||
|
||||
@@ -44,7 +44,7 @@ Kanboard.Screenshot.prototype.initialize = function() {
|
||||
|
||||
// Destroy contentEditable element
|
||||
Kanboard.Screenshot.prototype.destroy = function() {
|
||||
if (this.pasteCatcher != null) {
|
||||
if (this.pasteCatcher !== null) {
|
||||
document.body.removeChild(this.pasteCatcher);
|
||||
}
|
||||
else if (document.getElementById("screenshot-pastezone")) {
|
||||
|
||||
8
assets/js/vendor.min.js
vendored
8
assets/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user