From 128f2c8ebbfaa35144a237fe30b2d82f8202114b Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Mon, 16 Feb 2015 15:27:58 +0100 Subject: Hide tasks when filter is activated. Simply changing is opacity is nice, but does not work well when the board contains more tasks then fit on the screen. Moreover, moving tasks now properly handles in controller/model, so it is possible to show only some tasks. --- assets/js/src/board.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'assets/js/src') diff --git a/assets/js/src/board.js b/assets/js/src/board.js index e4ba4ed5..7cceb533 100644 --- a/assets/js/src/board.js +++ b/assets/js/src/board.js @@ -218,18 +218,18 @@ Kanboard.Board = (function() { var categoryId = item.getAttribute("data-category-id"); if (ownerId != selectedUserId && selectedUserId != -1) { - item.style.opacity = "0.2"; + item.style.display = "none"; } else { - item.style.opacity = "1.0"; + item.style.display = "block"; } if (filterDueDate && (dueDate == "" || dueDate == "0")) { - item.style.opacity = "0.2"; + item.style.display = "none"; } if (categoryId != selectedCategoryId && selectedCategoryId != -1) { - item.style.opacity = "0.2"; + item.style.display = "none"; } }); -- cgit v1.2.3