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:
@@ -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";
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user