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

Function closeSectionContent

public/js/adminPanel.js:5613–5625  ·  view source on GitHub ↗
(cnt)

Source from the content-addressed store, hash-verified

5611}
5612
5613function closeSectionContent(cnt) {
5614 if (!cnt) return;
5615 clearSectionTimer(cnt);
5616 cnt.classList.remove("is-open");
5617 cnt.classList.add("is-closing");
5618 cnt.__closeTimer = setTimeout(() => {
5619 if (cnt.classList.contains("is-closing")) {
5620 cnt.style.display = "none";
5621 cnt.classList.remove("is-closing");
5622 }
5623 cnt.__closeTimer = null;
5624 }, SECTION_ANIM_MS);
5625}
5626
5627function setSectionContentImmediate(cnt, open) {
5628 if (!cnt) return;

Callers 1

toggleSectionFunction · 0.85

Calls 1

clearSectionTimerFunction · 0.85

Tested by

no test coverage detected