mirror of
https://gitlab.aachen.ccc.de/inventory/in.git
synced 2024-11-25 16:53:59 +01:00
URL encode item ID in edit link
This commit is contained in:
parent
c5613e96b7
commit
c2133771eb
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function renderItems() {
|
|||
clone.querySelector(".content").textContent = item.content;
|
||||
clone.querySelector(".note").textContent = item.note;
|
||||
clone.querySelector(".result").id = `item-${id}`;
|
||||
clone.querySelector("a").href = `form.html?id=${id}`;
|
||||
clone.querySelector("a").href = `form.html?id=${encodeURIComponent(id)}`;
|
||||
if (item.hidden) {
|
||||
clone.querySelector(".result").classList.add('hidden')
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue