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

Function toggleOpen

public/js/adminFolderAccess.js:1360–1366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1358 }
1359
1360 function toggleOpen() {
1361 const willShow = details.style.display === "none";
1362 details.style.display = willShow ? "block" : "none";
1363 header.setAttribute("aria-expanded", willShow ? "true" : "false");
1364 caret.style.transform = willShow ? "rotate(0deg)" : "rotate(-90deg)";
1365 if (willShow) ensureLoaded();
1366 }
1367
1368 header.addEventListener("click", toggleOpen);
1369 header.addEventListener("keydown", (e) => {

Callers 1

loadUserPermissionsListFunction · 0.70

Calls 1

ensureLoadedFunction · 0.70

Tested by

no test coverage detected