MCPcopy Create free account
hub / github.com/error311/FileRise / onShareFileToggle

Function onShareFileToggle

public/js/adminFolderAccess.js:126–135  ·  view source on GitHub ↗
(row, checked)

Source from the content-addressed store, hash-verified

124}
125
126function onShareFileToggle(row, checked) {
127 if (!checked) return;
128 const viewAll = qs(row, 'input[data-cap="view"]');
129 const viewOwn = qs(row, 'input[data-cap="viewOwn"]');
130 const hasView = !!(viewAll && viewAll.checked);
131 const hasOwn = !!(viewOwn && viewOwn.checked);
132 if (!hasView && !hasOwn && viewOwn) {
133 viewOwn.checked = true;
134 }
135}
136
137function onShareFolderToggle(row, checked) {
138 if (checked) {

Callers

nothing calls this directly

Calls 1

qsFunction · 0.70

Tested by

no test coverage detected