diff --git a/web.py b/web.py index 650cc81..00c78e7 100644 --- a/web.py +++ b/web.py @@ -1148,6 +1148,8 @@ function renderFiles(files) { `; const dayTbody = document.createElement('tbody'); table.appendChild(dayTbody); + section.appendChild(table); + container.appendChild(section); // File rows dayFiles.forEach(f => { @@ -1219,9 +1221,6 @@ function renderFiles(files) { _attachFileRowHandlers(f, isRec, expanded, dayId); }); - section.appendChild(table); - container.appendChild(section); - // Day toggle handler document.getElementById('daytgl-' + dayId).addEventListener('click', () => { const nowExp = !dayExpanded.get(dayId);