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

Function setSectionContentImmediate

public/js/adminPanel.js:5627–5638  ·  view source on GitHub ↗
(cnt, open)

Source from the content-addressed store, hash-verified

5625}
5626
5627function setSectionContentImmediate(cnt, open) {
5628 if (!cnt) return;
5629 clearSectionTimer(cnt);
5630 if (open) {
5631 cnt.style.display = "block";
5632 cnt.classList.add("is-open");
5633 cnt.classList.remove("is-closing");
5634 } else {
5635 cnt.style.display = "none";
5636 cnt.classList.remove("is-open", "is-closing");
5637 }
5638}
5639
5640function focusSectionIntoView(hdr, cnt) {
5641 if (!hdr || !cnt) return;

Callers 2

restoreStateFunction · 0.85
applyFilterFunction · 0.85

Calls 1

clearSectionTimerFunction · 0.85

Tested by

no test coverage detected