summaryrefslogtreecommitdiffstats
path: root/ogcp/static
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-09 19:11:00 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-31 15:57:52 +0200
commit29ab4abf0d9ee969801d190eac827dd85083ab74 (patch)
tree213d7616d299a353c33abfb7f07c2cfc669006ca /ogcp/static
parentbf0459a837f955b82da9eb65805f0c424449d921 (diff)
Add current ogServer to scopesForm
With this commit when users select a scope, the ogServer to which it belongs is also sent. Then when processing the form we obtain this ogServer and we can send it the pertinent requests. This commit also makes action "Add client" to use the ogServer sent in the form.
Diffstat (limited to 'ogcp/static')
-rw-r--r--ogcp/static/js/ogcp.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index 8678759..bdd7581 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -64,6 +64,12 @@ function checkParentsCheckboxes() {
if (checkboxChildren.length == 0) return;
+ if (this.name == "scope-server") {
+ const checkedChildren = checkboxChildren.filter(":checked");
+ checkbox.checked = checkedChildren.length > 0;
+ return;
+ }
+
const unCheckedChildren = checkboxChildren.filter(":not(:checked)");
checkbox.indeterminate =