Gustavo Luigi 2023-07-29 21:21:10 -03:00
parent 6b447fe592
commit b887e03dee
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ function initMap() {
locationElement.html(locationElement.html().replace('$title', item.title));
locationElement.html(locationElement.html().replace('data-src="$image"', 'src="' + item.image + '"'));
locationElement.html(locationElement.html().replace('data-href="$path"', 'href="' + item.path + '"'));
locationElement.html(locationElement.html().replace('$postalCode', (item.location.postalCode + " " + (item.location.addressLocality ?? "")).trim()));
locationElement.html(locationElement.html().replace('$postalCode', (item[textToSlug(locationField)].postalCode + " " + (item[textToSlug(locationField)].addressLocality ?? "")).trim()));
locationElement.removeClass('d-none');

if (item[textToSlug(tagField)]) item[textToSlug(tagField)].slice(0, 2).forEach(function (besonderheitenItem) {