diff options
author | Daniel Schadt <kingdread@gmx.de> | 2024-01-20 22:38:23 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2024-01-20 22:38:23 +0100 |
commit | 5b1317e823f7bd6b6fc2fbf78e2d09ce7982088f (patch) | |
tree | 616a9b9051ee8bba193e256538da09360df8b776 | |
parent | daef786b9061f3032a2755a2df2eeca42d7f62b0 (diff) | |
download | fietsboek-5b1317e823f7bd6b6fc2fbf78e2d09ce7982088f.tar.gz fietsboek-5b1317e823f7bd6b6fc2fbf78e2d09ce7982088f.tar.bz2 fietsboek-5b1317e823f7bd6b6fc2fbf78e2d09ce7982088f.zip |
use <template> tag
This is semantically more sound than using a hidden div
-rw-r--r-- | asset-sources/fietsboek.ts | 21 | ||||
-rw-r--r-- | fietsboek/static/fietsboek.js | 11 | ||||
-rw-r--r-- | fietsboek/static/fietsboek.js.map | 2 | ||||
-rw-r--r-- | fietsboek/templates/edit_form.jinja2 | 16 |
4 files changed, 27 insertions, 23 deletions
diff --git a/asset-sources/fietsboek.ts b/asset-sources/fietsboek.ts index ae9e724..10c1490 100644 --- a/asset-sources/fietsboek.ts +++ b/asset-sources/fietsboek.ts @@ -179,7 +179,8 @@ function searchFriends() { fetch(FRIENDS_URL) .then((response) => response.json()) .then((response: [JsonFriend]) => { - const blueprint = document.querySelector("#friendSearchBlueprint") as HTMLLIElement; + const blueprint = (document.querySelector("#friendSearchBlueprint") as HTMLTemplateElement). + content; // Only show friends with a matching name let friends = response.filter( @@ -192,16 +193,15 @@ function searchFriends() { ); friends.forEach((friend) => { - const copy = blueprint.cloneNode(true) as HTMLLIElement; - copy.removeAttribute("id"); + const copy = blueprint.cloneNode(true) as DocumentFragment; (copy.querySelector(".friend-name") as HTMLSpanElement).textContent = friend.name; copy.querySelector("button")?.addEventListener("click", (event: MouseEvent) => { const button = (event.target as HTMLElement).closest("button")!; button.parentNode!.parentNode!.removeChild(button.parentNode!); - const added = document.querySelector("#friendAddedBlueprint")!. - cloneNode(true) as HTMLLIElement; - added.removeAttribute("id"); + const added = (document.querySelector("#friendAddedBlueprint")! as HTMLTemplateElement). + content. + cloneNode(true) as DocumentFragment; (added.querySelector(".friend-name") as HTMLSpanElement). textContent = friend.name; added.querySelector("input")!.value = friend.id.toString(); @@ -259,9 +259,9 @@ function imageSelectorChanged(event: Event) { transfer.items.add(file); input.files = transfer.files; - const preview = document.querySelector("#trackImagePreviewBlueprint")!. - cloneNode(true) as HTMLDivElement; - preview.removeAttribute("id"); + const preview = (document.querySelector("#trackImagePreviewBlueprint") as HTMLTemplateElement). + content. + cloneNode(true) as DocumentFragment; preview.querySelector("img")!.src = URL.createObjectURL(file); preview.querySelector("button.delete-image")!. addEventListener("click", deleteImageButtonClicked as EventListener); @@ -269,7 +269,7 @@ function imageSelectorChanged(event: Event) { addEventListener("click", editImageDescriptionClicked as EventListener); (preview.querySelector("input.image-description-input") as HTMLInputElement). name = `image-description[${window.fietsboekImageIndex}]`; - preview.appendChild(input); + preview.querySelector("div")!.appendChild(input); document.querySelector("#trackImageList")!.appendChild(preview); } @@ -286,6 +286,7 @@ addHandler("#imageSelector", "change", imageSelectorChanged); */ function deleteImageButtonClicked(event: MouseEvent) { const preview = (event.target as HTMLElement).closest("div.track-image-preview")!; + console.log(preview); /* If this was a image yet to be uploaded, simply remove it */ const input = preview.querySelector("input[type=file]"); if (input) { diff --git a/fietsboek/static/fietsboek.js b/fietsboek/static/fietsboek.js index c9dfe2a..1ed4253 100644 --- a/fietsboek/static/fietsboek.js +++ b/fietsboek/static/fietsboek.js @@ -142,7 +142,8 @@ function searchFriends() { fetch(FRIENDS_URL) .then((response) => response.json()) .then((response) => { - const blueprint = document.querySelector("#friendSearchBlueprint"); + const blueprint = document.querySelector("#friendSearchBlueprint"). + content; // Only show friends with a matching name let friends = response.filter((obj) => obj.name.toLowerCase().indexOf(searchPattern) != -1); // Only show friends that are not yet existing @@ -150,14 +151,13 @@ function searchFriends() { friends.forEach((friend) => { var _a; const copy = blueprint.cloneNode(true); - copy.removeAttribute("id"); copy.querySelector(".friend-name").textContent = friend.name; (_a = copy.querySelector("button")) === null || _a === void 0 ? void 0 : _a.addEventListener("click", (event) => { const button = event.target.closest("button"); button.parentNode.parentNode.removeChild(button.parentNode); const added = document.querySelector("#friendAddedBlueprint"). + content. cloneNode(true); - added.removeAttribute("id"); added.querySelector(".friend-name"). textContent = friend.name; added.querySelector("input").value = friend.id.toString(); @@ -210,8 +210,8 @@ function imageSelectorChanged(event) { transfer.items.add(file); input.files = transfer.files; const preview = document.querySelector("#trackImagePreviewBlueprint"). + content. cloneNode(true); - preview.removeAttribute("id"); preview.querySelector("img").src = URL.createObjectURL(file); preview.querySelector("button.delete-image"). addEventListener("click", deleteImageButtonClicked); @@ -219,7 +219,7 @@ function imageSelectorChanged(event) { addEventListener("click", editImageDescriptionClicked); preview.querySelector("input.image-description-input"). name = `image-description[${window.fietsboekImageIndex}]`; - preview.appendChild(input); + preview.querySelector("div").appendChild(input); document.querySelector("#trackImageList").appendChild(preview); } target.value = ""; @@ -232,6 +232,7 @@ addHandler("#imageSelector", "change", imageSelectorChanged); */ function deleteImageButtonClicked(event) { const preview = event.target.closest("div.track-image-preview"); + console.log(preview); /* If this was a image yet to be uploaded, simply remove it */ const input = preview.querySelector("input[type=file]"); if (input) { diff --git a/fietsboek/static/fietsboek.js.map b/fietsboek/static/fietsboek.js.map index 557b442..b8df86c 100644 --- a/fietsboek/static/fietsboek.js.map +++ b/fietsboek/static/fietsboek.js.map @@ -1 +1 @@ -{"version":3,"file":"fietsboek.js","sourceRoot":"","sources":["../../asset-sources/fietsboek.ts"],"names":[],"mappings":";AAgBA,kDAAkD;AAClD,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC;AAQpB;;;;;GAKG;AACH,SAAS,SAAS,CAAC,IAAY;;IAC3B,OAAO,MAAA,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;SAC7B,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC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AAE,IAAwB,CAAC,aAAa,EAAE,EAAE;gBAC5C,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;aAC3B;YAED,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC,EAAE,KAAK,CAAC,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,gDAAgD;IAChD,QAAQ,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnE,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,oBAAoB,CAAE,CAAC,KAAK,CAAC,CAAC;QACvF,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;QACxC,uEAAuE;QACvE,sCAAsC;QACtC,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE;YACzC,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;SACf,CAAC,CAAC;QACV,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
\ No newline at end of file diff --git a/fietsboek/templates/edit_form.jinja2 b/fietsboek/templates/edit_form.jinja2 index 43f3400..aa09c9e 100644 --- a/fietsboek/templates/edit_form.jinja2 +++ b/fietsboek/templates/edit_form.jinja2 @@ -71,17 +71,19 @@ </div> </div> <!-- Hidden templates for Javascript to use --> - <div style="display: none;"> - <li class="list-group-item friendlist-control" id="friendSearchBlueprint"> + <template id="friendSearchBlueprint"> + <li class="list-group-item friendlist-control"> <button type="button" class="btn btn-success"><i class="bi bi-plus-square-fill"></i></button> <span class="friend-name"></span> </li> - <li class="list-group-item friendlist-control" id="friendAddedBlueprint"> + </template> + <template id="friendAddedBlueprint"> + <li class="list-group-item friendlist-control"> <button type="button" class="btn btn-danger remove-friend-button"><i class="bi bi-x-square-fill"></i></button> <input name="tagged-friend[]" type="hidden" disabled> <span class="friend-name"></span> </li> - </div> + </template> <!-- End of templates --> <ul class="list-group" id="friendSearch"> </ul> @@ -124,14 +126,14 @@ {% endif %} </div> <!-- Mode hidden templates --> -<div style="display:none;"> - <div id="trackImagePreviewBlueprint" class="track-image-preview"> +<template id="trackImagePreviewBlueprint"> + <div class="track-image-preview"> <button type="button" class="btn-close delete-image" aria-label="{{ _("page.track.form.remove_image") }}"></button> <button type="button" class="edit-image-description"><i class="bi bi-cursor-text"></i></button> <input type="hidden" class="image-description-input" name="image-description[]" value=""> <img> </div> -</div> +</template> <!-- Edit image description modal --> <div class="modal" tabindex="-1" id="imageDescriptionModal"> <div class="modal-dialog"> |