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

Function handleFolderCheckboxChange

public/js/fileListView.js:3010–3030  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

3008}
3009
3010function handleFolderCheckboxChange(cb) {
3011 if (!cb) return;
3012
3013 // Enforce single-select folders and mutually exclusive with files
3014 if (cb.checked) {
3015 clearFileSelections();
3016 getFolderCheckboxes().forEach(other => {
3017 if (other !== cb && other.checked) {
3018 other.checked = false;
3019 updateRowHighlight(other);
3020 }
3021 });
3022 window.selectedInlineFolder = cb.dataset.folder || null;
3023 } else {
3024 window.selectedInlineFolder = null;
3025 }
3026
3027 updateRowHighlight(cb);
3028 updateFileActionButtons();
3029 refreshSelectedFolderCaps(window.selectedInlineFolder);
3030}
3031
3032function resetPagingForFolderNavigation(pane) {
3033 const paneKey = normalizePaneKey(pane || window.activePane);

Callers 1

injectInlineFolderRowsFunction · 0.85

Calls 5

clearFileSelectionsFunction · 0.85
getFolderCheckboxesFunction · 0.85
updateRowHighlightFunction · 0.85
updateFileActionButtonsFunction · 0.85

Tested by

no test coverage detected