move delete button to the right
All checks were successful
Build / build (pull_request) Successful in 1m21s
All checks were successful
Build / build (pull_request) Successful in 1m21s
This commit is contained in:
parent
fe9f19af1c
commit
fe1d700c1f
@ -1033,17 +1033,6 @@ function updateInventory() {
|
||||
const input = document.createElement("input");
|
||||
const a = document.createElement("a");
|
||||
|
||||
const removeButton = document.createElement("a");
|
||||
removeButton.title = loc("code_remove");
|
||||
removeButton.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"/></svg>`;
|
||||
removeButton.href = "#";
|
||||
removeButton.onclick = function (event) {
|
||||
event.preventDefault();
|
||||
setBooster(ItemType, 0);
|
||||
};
|
||||
removeButton.classList.add("me-2");
|
||||
td.appendChild(removeButton);
|
||||
|
||||
a.href = "#";
|
||||
a.onclick = event => {
|
||||
event.preventDefault();
|
||||
@ -1089,6 +1078,17 @@ function updateInventory() {
|
||||
|
||||
td.appendChild(inlineForm);
|
||||
|
||||
const removeButton = document.createElement("a");
|
||||
removeButton.title = loc("code_remove");
|
||||
removeButton.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"/></svg>`;
|
||||
removeButton.href = "#";
|
||||
removeButton.onclick = function (event) {
|
||||
event.preventDefault();
|
||||
setBooster(ItemType, 0);
|
||||
};
|
||||
removeButton.classList.add("me-2");
|
||||
td.appendChild(removeButton);
|
||||
|
||||
tr.appendChild(td);
|
||||
}
|
||||
document.getElementById("Boosters-list").appendChild(tr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user