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

Function setOpen

public/js/adminPanel.js:5728–5735  ·  view source on GitHub ↗
(open, opts = {})

Source from the content-addressed store, hash-verified

5726 const ids = sectionIds.filter(Boolean);
5727
5728 const setOpen = (open, opts = {}) => {
5729 if (!wrap || !toggleBtn) return;
5730 wrap.classList.toggle("is-collapsed", !open);
5731 toggleBtn.setAttribute("aria-expanded", open ? "true" : "false");
5732 if (open && opts.focus) {
5733 input.focus();
5734 }
5735 };
5736
5737 const updateToggleState = () => {
5738 const hasQuery = !!normalizeAdminSearchText(input.value);

Callers 3

clearSearchFunction · 0.85
wireAdminPanelSearchFunction · 0.85
openAdminPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected