This commit is contained in:
Bruno Rybársky 2024-04-26 01:19:00 +02:00
parent 20ca96ba05
commit 24f4242523

@ -120,7 +120,7 @@ async function displayList(data, elementId, deleteFunction) {
if ("function" === typeof deleteFunction) {
const td = document.createElement("td");
const deleteButton = document.createElement('button');
deleteButton.textContent = "<i class='ri-delete-bin-line'></i>";
deleteButton.innerHTML = "<i class='ri-delete-bin-line'></i>";
deleteButton.onclick = () => deleteFunction(line.ID);
td.appendChild(deleteButton);
dataRow.appendChild(td);