fix scrolltable

This commit is contained in:
naielv
2025-07-30 22:47:37 +02:00
parent 8052d21fcc
commit 0f2b2df969

View File

@@ -636,8 +636,9 @@ function TS_IndexElement(
// label: string // label: string
var tablebody = safeuuid(); var tablebody = safeuuid();
var tablehead = safeuuid(); var tablehead = safeuuid();
var scrolltable = safeuuid();
container.innerHTML = ` container.innerHTML = `
<div id="scrolltable"> <div id="${scrolltable}">
<table> <table>
<thead> <thead>
<tr id="${tablehead}"></tr> <tr id="${tablehead}"></tr>
@@ -647,7 +648,7 @@ function TS_IndexElement(
</table> </table>
</div> </div>
`; `;
tableScroll("#scrolltable"); // id="scrolltable" tableScroll("#" + scrolltable); // id="scrolltable"
var tablehead_EL = document.getElementById(tablehead); var tablehead_EL = document.getElementById(tablehead);
var tablebody_EL = document.getElementById(tablebody); var tablebody_EL = document.getElementById(tablebody);
var rows = {}; var rows = {};