From 270089983abfaf6c7f98c16512c74c7f6093abb1 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Fri, 11 Oct 2024 13:19:57 +0200 Subject: js: fix sidebar client selection Fix the JQuery selector to properly filter checboxes in the sidebar --- ogcp/static/js/ogcp.js | 2 +- ogcp/templates/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js index 943fccf..05855fc 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -161,7 +161,7 @@ function configureCommandCheckboxes(context) { checkboxes.on('change', function () { const checked = this.checked; - const childrenCheckboxes = $('#sidebar input:checkbox', this.parentNode); + const childrenCheckboxes = $('input[type="checkbox"][form="scopesForm"]', this.parentNode); // Uncheck all other checkboxes outside of the actual center branch if (checked) { diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index 5aa84c6..2bdadfc 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -111,7 +111,7 @@ - +