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

Function toggleSection

public/js/adminPanel.js:5694–5709  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

5692}
5693
5694function toggleSection(id) {
5695 const hdr = document.getElementById(id + "Header");
5696 const cnt = document.getElementById(id + "Content");
5697 if (!hdr || !cnt) return;
5698 const isCollapsedNow = hdr.classList.toggle("collapsed");
5699 if (isCollapsedNow) {
5700 closeSectionContent(cnt);
5701 } else {
5702 openSectionContent(cnt);
5703 scheduleSectionFocus(hdr, cnt);
5704 }
5705 if (!isCollapsedNow && id === "shareLinks") {
5706 loadShareLinksSection();
5707 cnt.dataset.loaded = "1";
5708 }
5709}
5710
5711function normalizeAdminSearchText(value) {
5712 return String(value || "")

Callers 1

openAdminPanelFunction · 0.85

Calls 4

closeSectionContentFunction · 0.85
openSectionContentFunction · 0.85
scheduleSectionFocusFunction · 0.85
loadShareLinksSectionFunction · 0.85

Tested by

no test coverage detected