aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-12-29 11:02:49 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-12-29 11:02:50 +0100
commitd17b448a9c070c0d4702a90290036aa477fddfd6 (patch)
treeee3c4e46984ab548009ca71b07952f1824fa3735
parentfix wrong selection, doclist quick filters (diff)
downloadscout-subs-d17b448a9c070c0d4702a90290036aa477fddfd6.tar.gz
scout-subs-d17b448a9c070c0d4702a90290036aa477fddfd6.zip
fix quick select for readonly doclist
Diffstat (limited to '')
-rw-r--r--server/templates/server/doc_list_readonly.html6
-rw-r--r--version.txt2
2 files changed, 6 insertions, 2 deletions
diff --git a/server/templates/server/doc_list_readonly.html b/server/templates/server/doc_list_readonly.html
index ac1ae6d..c29fb74 100644
--- a/server/templates/server/doc_list_readonly.html
+++ b/server/templates/server/doc_list_readonly.html
@@ -600,7 +600,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() {
@@ -648,9 +650,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 7fa208f..13d18eb 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.6
-rev=11
+rev=12