diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-19 20:33:19 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-22 15:57:51 +0200 |
commit | c1d08df31d5135fe43c26ea32b5998ad30645162 (patch) | |
tree | a6846a91407edf1bf896006c3989dde52ebc5fbc /ogcp/static/AdminLTE/dist/css/adminlte.min.css | |
parent | c3d2582aa6431ee1c4b95c04f51905f4f0976730 (diff) |
ogcp: improve sidebar logic in Commands
Disable all checkboxes of scopes of level higher than room in the
$(window).on('pageshow', function) callback.
Set checkboxes as "indeterminate" when not every children is
selected but have some of its children selected.
[x] center
[x] room1
[x] client1
[x] client1
[-] center
[ ] room1
[-] room2
[ ] client1
[x] client1
Send all selected sidebar fields as form fields. This requires
setting disabled to false and replacing indeterminate = true
to checked = true in the .on('submit', function) callback.
When a checkbox is clicked:
1. Find the room branch of the checked input.
[ ] center
[ ] room1
[ ] room2 <- root of the room branch
[ ] client1 <-- clicked item
2. Uncheck all the checkboxes outside of the room branch.
3. Set all the children of the clicked item to the same value
as the clicked item.
4. Set the parent checked or indeterminate values.
5. Save checkbox status.
Diffstat (limited to 'ogcp/static/AdminLTE/dist/css/adminlte.min.css')
0 files changed, 0 insertions, 0 deletions