summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/static/js/ogcp.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index 875084d..8fb9838 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -91,7 +91,11 @@ function checkChildrenCheckboxes() {
if (this.name === 'scope-room') {
const others = $('input:checkbox[form|="scopesForm"]').not(this);
others.prop('checked', false);
- others.trigger('change');
+ others.each(function() {
+ showSelectedClient(this);
+ storeCheckboxStatus(this);
+ });
+ //others.trigger('change');
} else {
// Look for room, deselect all other rooms
const selectedRoom = $('[data-room="' + $(this).data('parentRoom') + '"]');
@@ -99,9 +103,12 @@ function checkChildrenCheckboxes() {
others.prop('checked', false).prop('indeterminate', false);
others.each(function() {
const checks = $(this).parent().find('input:checkbox').prop('checked', false);
- checks.trigger('change');
+ storeCheckboxStatus(this);
+ checks.each(function() {
+ showSelectedClient(this);
+ storeCheckboxStatus(this);
+ });
});
- others.trigger('change');
}
}