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.
This commit is contained in:
Francois Ferrand
2015-02-16 15:27:58 +01:00
parent 8fde5df4f8
commit 128f2c8ebb
2 changed files with 6 additions and 6 deletions

View File

@@ -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";
}
});