From 57ed2636ac35e6b58c8f82d583558b7d643e865f Mon Sep 17 00:00:00 2001 From: MTRNord Date: Thu, 13 Sep 2018 14:39:49 +0200 Subject: [PATCH] jkanban.js fix whitespace changes --- www/kanban/jkanban.js | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/www/kanban/jkanban.js b/www/kanban/jkanban.js index 0ecaf2a22..69df83596 100644 --- a/www/kanban/jkanban.js +++ b/www/kanban/jkanban.js @@ -85,18 +85,18 @@ //Init Drag Board self.drakeBoard = self.dragula([self.container], { - moves: function (el, source, handle, sibling) { - if (self.options.readOnly) { return false; } - if (!self.options.dragBoards) return false; - return (handle.classList.contains('kanban-board-header') || handle.classList.contains('kanban-title-board')); - }, - accepts: function (el, target, source, sibling) { - if (self.options.readOnly) { return false; } - return target.classList.contains('kanban-container'); - }, - revertOnSpill: true, - direction: 'horizontal', - }) + moves: function (el, source, handle, sibling) { + if (self.options.readOnly) { return false; } + if (!self.options.dragBoards) return false; + return (handle.classList.contains('kanban-board-header') || handle.classList.contains('kanban-title-board')); + }, + accepts: function (el, target, source, sibling) { + if (self.options.readOnly) { return false; } + return target.classList.contains('kanban-container'); + }, + revertOnSpill: true, + direction: 'horizontal', + }) .on('drag', function (el, source) { el.classList.add('is-moving'); self.options.dragBoard(el, source); @@ -311,14 +311,6 @@ if (self.options.boards !== boards) self.options.boards.push(board); - /*if (!self.options.responsivePercentage) { - //add width to container - if (self.container.style.width === '') { - self.container.style.width = parseInt(boardWidth) + (parseInt(self.options.gutter) * 2) + 'px'; - } else { - self.container.style.width = parseInt(self.container.style.width) + parseInt(boardWidth) + (parseInt(self.options.gutter) * 2) + 'px'; - } - }*/ //create node var boardNode = document.createElement('div'); boardNode.dataset.id = board.id;