Add jshint

This commit is contained in:
Frederic Guillot
2016-11-25 18:51:22 -05:00
parent f73d369dd0
commit e64faae69a
13 changed files with 25 additions and 25 deletions

View File

@@ -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";
}

View File

@@ -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

View File

@@ -1,3 +1 @@
'use strict';
var Kanboard = {};

View File

@@ -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")) {