From b0a9ee82a223d668afce2a161a38ac8a77844c9d Mon Sep 17 00:00:00 2001 From: MizukiTemma Date: Tue, 17 Dec 2024 17:35:59 +0100 Subject: [PATCH] Apply the review suggestions --- integreat_cms/static/src/index.ts | 2 +- integreat_cms/static/src/js/{poi_box.ts => poi-box.ts} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename integreat_cms/static/src/js/{poi_box.ts => poi-box.ts} (98%) diff --git a/integreat_cms/static/src/index.ts b/integreat_cms/static/src/index.ts index b81aae6203..d92607f66c 100644 --- a/integreat_cms/static/src/index.ts +++ b/integreat_cms/static/src/index.ts @@ -49,7 +49,7 @@ import "./js/grids/toggle-grid-checkbox"; import "./js/chat/send-chat-message"; import "./js/chat/delete-chat-message"; -import "./js/poi_box"; +import "./js/poi-box"; import "./js/events/conditional-fields"; import "./js/events/auto-complete"; diff --git a/integreat_cms/static/src/js/poi_box.ts b/integreat_cms/static/src/js/poi-box.ts similarity index 98% rename from integreat_cms/static/src/js/poi_box.ts rename to integreat_cms/static/src/js/poi-box.ts index 8e728179d0..b789a47951 100644 --- a/integreat_cms/static/src/js/poi_box.ts +++ b/integreat_cms/static/src/js/poi-box.ts @@ -156,7 +156,7 @@ const removePoi = () => { // Clear the poi form hidePoiFormWidget(); console.debug("Removed POI data"); - document.getElementById("poi-address-container").getElementsByTagName("input")[0].value = "-1"; + (document.getElementById("id_location") as HTMLInputElement).value = "-1"; document.getElementById("info-location-mandatory")?.classList.remove("hidden"); };