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 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/templates') 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"); } } } -- cgit v1.2.1 From d17b448a9c070c0d4702a90290036aa477fddfd6 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 29 Dec 2022 11:02:49 +0100 Subject: fix quick select for readonly doclist --- server/templates/server/doc_list_readonly.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/templates') 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"); } } } -- cgit v1.2.1 From 37bfbd7dcdd2542228984b1f8161fd94860750f7 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 29 Dec 2022 11:16:40 +0100 Subject: remove unarchive, enable archive unapproved docs --- server/templates/server/doc_list.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/templates') diff --git a/server/templates/server/doc_list.html b/server/templates/server/doc_list.html index 023cf54..06c8893 100644 --- a/server/templates/server/doc_list.html +++ b/server/templates/server/doc_list.html @@ -17,7 +17,7 @@
  • archive
  • -
  • unarchive
  • +
  • file_download
  • {% if settings.DEBUG %}
  • checkDEBUG
  • @@ -38,6 +38,7 @@ -- cgit v1.2.1