Rewrite some stuff
This commit is contained in:
parent
ec4df02b65
commit
b9184a7c04
@ -107,7 +107,7 @@ async function displayList(data, elementId, deleteFunction) {
|
|||||||
if ("function" === typeof deleteFunction) {
|
if ("function" === typeof deleteFunction) {
|
||||||
const th = document.createElement("th");
|
const th = document.createElement("th");
|
||||||
let deleteBtn = document.createElement('i');
|
let deleteBtn = document.createElement('i');
|
||||||
deleteBtn.classList[0] = "ri-delete-bin-line";
|
deleteBtn.classList = ["ri-delete-bin-line"];
|
||||||
th.appendChild(deleteBtn);
|
th.appendChild(deleteBtn);
|
||||||
headerRow.appendChild(th);
|
headerRow.appendChild(th);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user