summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r--ogcp/templates/macros.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index 228c393..c6cd15e 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -11,14 +11,15 @@
showSelectedClientsOnEvents();
updateScopeState();
keepScopesTreeState();
+ let context = {{ selection_mode | tojson | safe }};
{% if selection_mode == 'commands' %}
- keepSelectedClients();
- checkChildrenCheckboxes();
+ checkChildrenCheckboxes(context);
checkParentsCheckboxes();
{% elif selection_mode == 'scopes' %}
- limitCheckboxes();
- checkFolderParent();
+ limitCheckboxes(context);
+ checkFolderParent(context);
{% endif %}
+ keepSelectedClients(context);
}
});
</script>