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.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index 0283d26..a8e4f87 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -1,4 +1,4 @@
-{% macro scopes_tree_collapse(scopes, state='') -%}
+{% macro scopes_tree_collapse(scopes, state='', selection_mode='scopes') -%}
<ul id="scopes" class="nav flex-column nav-pills">
{{ scopes_tree_collapse_level(scopes["scope"], "", state) }}
@@ -11,9 +11,13 @@
showSelectedClientsOnEvents();
updateScopeState();
keepScopesTreeState();
- keepSelectedClients();
- checkChildrenCheckboxes();
- checkParentsCheckboxes();
+ {% if selection_mode == 'commands' %}
+ keepSelectedClients();
+ checkChildrenCheckboxes();
+ checkParentsCheckboxes();
+ {% elif selection_mode == 'scopes' %}
+ limitCheckboxes();
+ {% endif %}
}
});
</script>