summaryrefslogtreecommitdiff
path: root/assets/js/src/board.js
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2015-02-16 15:27:58 +0100
committerFrancois Ferrand <thetypz@gmail.com>2015-02-16 15:27:58 +0100
commit128f2c8ebbfaa35144a237fe30b2d82f8202114b (patch)
tree0f9fceacd8436fc57e280be558cd2b05ad14f24e /assets/js/src/board.js
parent8fde5df4f829e9ea2c3a9262512a34a584e4b4e5 (diff)
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.
Diffstat (limited to 'assets/js/src/board.js')
-rw-r--r--assets/js/src/board.js8
1 files changed, 4 insertions, 4 deletions
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";
}
});