MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / toggleSourceGroup

Function toggleSourceGroup

deployments/desktop/static/app.js:606–613  ·  view source on GitHub ↗
(targetId)

Source from the content-addressed store, hash-verified

604}
605
606function toggleSourceGroup(targetId) {
607 const inputs = [...document.querySelectorAll(`#${targetId} input[type='checkbox']:not(:disabled)`)];
608 if (!inputs.length) return;
609 const shouldCheck = inputs.some((input) => !input.checked);
610 inputs.forEach((input) => {
611 input.checked = shouldCheck;
612 });
613}
614
615function renderRoles(roles) {
616 const target = $("roleList");

Callers 1

bindEventsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected