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

Function openModal

public/js/main.js:1494–1497  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1492 }
1493
1494 const openModal = (id) => {
1495 const m = document.getElementById(id);
1496 if (m) { m.style.display = 'block'; closeMenu(); }
1497 };
1498 if (makeF && !makeF.__bound) { makeF.__bound = true; makeF.addEventListener('click', (e) => { e.preventDefault(); openModal('createFileModal'); }); }
1499 if (makeD && !makeD.__bound) { makeD.__bound = true; makeD.addEventListener('click', (e) => { e.preventDefault(); openModal('createFolderModal'); }); }
1500 }

Callers 1

wireCreateDropdownFunction · 0.70

Calls 1

closeMenuFunction · 0.85

Tested by

no test coverage detected