From e64faae69aec404b2641b8ae281afe20806e8292 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 25 Nov 2016 18:51:22 -0500 Subject: Add jshint --- assets/js/src/App.js | 6 +++--- assets/js/src/BoardDragAndDrop.js | 2 +- assets/js/src/Namespace.js | 2 -- assets/js/src/Screenshot.js | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) (limited to 'assets/js/src') diff --git a/assets/js/src/App.js b/assets/js/src/App.js index 6fb3ccb7..911b9f7c 100644 --- a/assets/js/src/App.js +++ b/assets/js/src/App.js @@ -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"; } diff --git a/assets/js/src/BoardDragAndDrop.js b/assets/js/src/BoardDragAndDrop.js index 5ff6e76a..5d2844de 100644 --- a/assets/js/src/BoardDragAndDrop.js +++ b/assets/js/src/BoardDragAndDrop.js @@ -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 diff --git a/assets/js/src/Namespace.js b/assets/js/src/Namespace.js index 6b4b0543..ada17047 100644 --- a/assets/js/src/Namespace.js +++ b/assets/js/src/Namespace.js @@ -1,3 +1 @@ -'use strict'; - var Kanboard = {}; diff --git a/assets/js/src/Screenshot.js b/assets/js/src/Screenshot.js index 5c74288b..4f69e9c3 100644 --- a/assets/js/src/Screenshot.js +++ b/assets/js/src/Screenshot.js @@ -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")) { -- cgit v1.2.3