aboutsummaryrefslogtreecommitdiffstats
path: root/server/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-12-29 10:58:09 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-12-29 10:58:09 +0100
commit22872ed11e8d9b61d09a5b4061f50279681d21c2 (patch)
tree52fa6d6a1926591aca78dbad00101e14c03c3752 /server/templates
parentfix incorrect group check for permissions (diff)
downloadscout-subs-22872ed11e8d9b61d09a5b4061f50279681d21c2.tar.gz
scout-subs-22872ed11e8d9b61d09a5b4061f50279681d21c2.zip
fix wrong selection, doclist quick filters
Diffstat (limited to '')
-rw-r--r--server/templates/server/doc_list.html6
1 files changed, 5 insertions, 1 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");
}
}
}