summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/App.js6
-rw-r--r--assets/js/src/BoardDragAndDrop.js2
-rw-r--r--assets/js/src/Namespace.js2
-rw-r--r--assets/js/src/Screenshot.js2
4 files changed, 5 insertions, 7 deletions
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")) {