MCPcopy Create free account
hub / github.com/TQZHR/grok2api / toggleLocalSelectAll

Function toggleLocalSelectAll

app/static/cache/cache.js:527–540  ·  view source on GitHub ↗
(type, checkbox)

Source from the content-addressed store, hash-verified

525}
526
527function toggleLocalSelectAll(type, checkbox) {
528 const set = selectedLocal[type];
529 if (!set) return;
530 const shouldSelect = checkbox && checkbox.checked;
531 set.clear();
532 if (shouldSelect) {
533 const items = cacheListState[type]?.items || [];
534 items.forEach(item => {
535 if (item && item.name) set.add(item.name);
536 });
537 }
538 syncLocalRowCheckboxes(type);
539 updateSelectedCount();
540}
541
542function syncLocalRowCheckboxes(type) {
543 const body = type === 'image' ? ui.localImageBody : ui.localVideoBody;

Callers

nothing calls this directly

Calls 4

syncLocalRowCheckboxesFunction · 0.85
updateSelectedCountFunction · 0.85
clearMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected