Skip to content

Commit

Permalink
app_event updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gdepadesign committed Nov 19, 2024
1 parent 1286c88 commit b1c8765
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions directories/events-directory/event-details/app_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function wrapVenueDetails(event) {
}
var venueName = event.venueName;
if (event.venueLink !== "") {
venueName = `<a href="${event.venueLink}">${venueName}</a>`;
venueName = `<a href="${event.venueLink}" target="_blank">${venueName}</a>`;
}

$("#venue-name").html(`<dt class="event-attribute-label"></dt>
Expand All @@ -237,13 +237,13 @@ function wrapVenueDetails(event) {

if (event.website !== "" && (eventOver || event.eventBrite !== "")) {
$("#venue-website").html(`<dt class="event-attribute-label"></dt>
<dd><a href="${event.website}">Event Website</a></dd>`);
<dd><a href="${event.website}" target="_blank">Event Website</a></dd>`);
} else {
$("#venue-website").remove();
}

$("#venue-website").html(`<dt class="event-attribute-label"></dt>
<dd><a href="${event.website}">Event Website</a></dd>`);
<dd><a href="${event.website}" target="_blank">Event Website</a></dd>`);
}

function wrapSpeakers(id, speakers) {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit b1c8765

Please sign in to comment.