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

Function setControlEnabled

public/js/folderManager.js:455–462  ·  view source on GitHub ↗
(el, enabled)

Source from the content-addressed store, hash-verified

453 Capability helpers
454----------------------*/
455function setControlEnabled(el, enabled) {
456 if (!el) return;
457 if ('disabled' in el) el.disabled = !enabled;
458 el.classList.toggle('disabled', !enabled);
459 el.setAttribute('aria-disabled', String(!enabled));
460 el.style.pointerEvents = enabled ? '' : 'none';
461 el.style.opacity = enabled ? '' : '0.5';
462}
463// --- Capability cache so we don't spam /capabilities.php
464const _capsCache = window.__FR_CAPS_CACHE || new Map();
465const _capsInflight = window.__FR_CAPS_INFLIGHT || new Map();

Callers 2

disableAllFolderControlsFunction · 0.85
applyFolderCapabilitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected