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

Function detachFolderModalsToBody

public/js/folderManager.js:20–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20function detachFolderModalsToBody() {
21 const ids = [
22 'createFolderModal',
23 'deleteFolderModal',
24 'moveFolderModal',
25 'renameFolderModal',
26 ];
27
28 ids.forEach(id => {
29 const el = document.getElementById(id);
30 if (!el) return;
31
32 if (el.parentNode !== document.body) {
33 document.body.appendChild(el);
34 }
35
36 if (!el.style.zIndex) {
37 el.style.zIndex = '13000';
38 }
39 });
40}
41document.addEventListener('DOMContentLoaded', detachFolderModalsToBody);
42
43const PAGE_LIMIT = 100;

Callers 4

openRenameFolderModalFunction · 0.85
openDeleteFolderModalFunction · 0.85
folderManager.jsFile · 0.85
openMoveFolderUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected