diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-16 14:38:03 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-27 09:48:36 +0200 |
commit | 58f295fb1cbc78db91d16708ea15818f29e451b7 (patch) | |
tree | c88f22a93799779482a6bd1378748572f74c5b48 /ogcp/static/js/ogcp.js | |
parent | 49db9dc7793e838dd591c5f27eb478656e6d96dc (diff) |
Fix client room retrieving
Otherwise, retrieving do not work on clients inside folders.
Diffstat (limited to 'ogcp/static/js/ogcp.js')
-rw-r--r-- | ogcp/static/js/ogcp.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js index 977f5a7..875084d 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -94,7 +94,7 @@ function checkChildrenCheckboxes() { others.trigger('change'); } else { // Look for room, deselect all other rooms - const selectedRoom = $(this).parent().parent().parent().children('[name="scope-room"]'); + const selectedRoom = $('[data-room="' + $(this).data('parentRoom') + '"]'); const others = $('input:checkbox[name="scope-room"]').not(selectedRoom); others.prop('checked', false).prop('indeterminate', false); others.each(function() { |