From b1c8765686064ab4bc00c18137e4ff1d6dd87bc1 Mon Sep 17 00:00:00 2001 From: Giacomo Date: Tue, 19 Nov 2024 18:16:33 +0100 Subject: [PATCH] app_event updates --- .../events-directory/event-details/app_event.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/directories/events-directory/event-details/app_event.js b/directories/events-directory/event-details/app_event.js index fe3b997d..a16d222f 100644 --- a/directories/events-directory/event-details/app_event.js +++ b/directories/events-directory/event-details/app_event.js @@ -221,7 +221,7 @@ function wrapVenueDetails(event) { } var venueName = event.venueName; if (event.venueLink !== "") { - venueName = `${venueName}`; + venueName = `${venueName}`; } $("#venue-name").html(`
@@ -237,13 +237,13 @@ function wrapVenueDetails(event) { if (event.website !== "" && (eventOver || event.eventBrite !== "")) { $("#venue-website").html(`
-
Event Website
`); +
Event Website
`); } else { $("#venue-website").remove(); } $("#venue-website").html(`
-
Event Website
`); +
Event Website
`); } function wrapSpeakers(id, speakers) { @@ -307,12 +307,12 @@ function addChips(id, items) { function addMap(eventDetails) { if (eventDetails.latitude === "") { - $("#map").empty(); + $("#map").remove(); return; } const map = new maplibregl.Map({ container: "map", - style: "./style.json", + style: "https://www.fiware.org/wp-content/directories/events-directory/event-details/style.json", maxZoom: 20, minZoom: 3, attributionControl: false, @@ -395,7 +395,7 @@ function loadEventDetails() { window.history.back(); }); - if ($.urlParam("id") && window.eventData[$.urlParam("id")]) { + if ($.urlParam("id") && window.eventData && window.eventData[$.urlParam("id")]) { fillJob(window.eventData[$.urlParam("id")]); } else { $(".et_pb_section_1").remove();