From 22872ed11e8d9b61d09a5b4061f50279681d21c2 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 29 Dec 2022 10:58:09 +0100 Subject: fix wrong selection, doclist quick filters --- server/templates/server/doc_list.html | 6 +++++- version.txt | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 45ea6e0..023cf54 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -619,7 +619,9 @@ $('#select-all').click(function(event) { if(this.checked) { // Iterate each checkbox $('.allselect').each(function() { - this.checked = true; + if (!this.hidden) { + this.checked = true; + } }); } else { $('.allselect').each(function() { @@ -667,9 +669,11 @@ function filterResults(group_name) { for (i = 0; i < items.length; i++) { var a = items[i].children[0]; + var checkBox = items[i].children[1].children[0].children[0]; var txtValue = a.value; if (txtValue == group_name) { items[i].style.display = action; + checkBox.hidden = (action == "none"); } } } diff --git a/version.txt b/version.txt index 82de9ac..7fa208f 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ version=0.6 -rev=10 +rev=11 -- cgit v1.2.1