(checked)
| 598 | } |
| 599 | |
| 600 | function setAllSources(checked) { |
| 601 | document.querySelectorAll(".choice-list input[type='checkbox']:not(:disabled)").forEach((input) => { |
| 602 | input.checked = checked; |
| 603 | }); |
| 604 | } |
| 605 | |
| 606 | function toggleSourceGroup(targetId) { |
| 607 | const inputs = [...document.querySelectorAll(`#${targetId} input[type='checkbox']:not(:disabled)`)]; |