Fix some js errors
This commit is contained in:
@@ -94,7 +94,7 @@ class MapController extends ActionController
|
||||
'name' => $product->getName(),
|
||||
'uri' => $this->getUriForPageUid($product->getDetailPage()),
|
||||
'externalLink' => $hotel->getExternalLink(),
|
||||
'teaser' => $product->getTeaser(),
|
||||
'teaser' => preg_replace("/[\r\n\t]/", "", $product->getTeaser()),
|
||||
'lat' => $hotel->getLatitude(),
|
||||
'lng' => $hotel->getLongitude(),
|
||||
];
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ export default class extends Controller {
|
||||
this.map.setView(position)
|
||||
} else if (this.hasMarkersValue && this.markersValue.length) {
|
||||
const bounds = L.latLngBounds()
|
||||
for (let item of this.markers) {
|
||||
for (let item of this.markersValue) {
|
||||
const position = L.latLng(item.lat, item.lng)
|
||||
const marker = L.marker(position)
|
||||
if (item.externalLink) {
|
||||
@@ -41,7 +41,7 @@ export default class extends Controller {
|
||||
window.open(item.externalLink, '_blank')
|
||||
})
|
||||
} else {
|
||||
const popupContent = '<div><strong>' + item.name + '</strong><br>' + item.teaser +
|
||||
const popupContent = '<div data-rte-content=""><strong>' + item.name + '</strong><br>' + item.teaser +
|
||||
'<br><a href="' + item.uri + '">zu den Details</a></div>'
|
||||
marker.bindPopup(popupContent)
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<span>
|
||||
{topitem.title}
|
||||
</span>
|
||||
<svg class="h-6 w-6 transform text-white" data-collapse-target="icon">
|
||||
<svg class="h-6 w-6 transform text-white">
|
||||
<f:if condition="{topitem.active}">
|
||||
<f:then>
|
||||
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-chevron-down"></use>
|
||||
@@ -123,8 +123,11 @@
|
||||
<ul class="m-0 px-4 divide-y divide-ep-primary-50 bg-gray-700">
|
||||
<f:for each="{mobilenav}" as="subitem">
|
||||
<li class="py-2"
|
||||
data-controller="collapse"
|
||||
data-collapse-collapsed-value="true">
|
||||
<f:if condition="{subitem.children}">
|
||||
data-controller="collapse"
|
||||
data-collapse-collapsed-value="true"
|
||||
</f:if>
|
||||
>
|
||||
<div class="flex items-center justify-between">
|
||||
<a href="{subitemlink}"
|
||||
class="uppercase text-xl text-white hover:text-white focus:text-white"
|
||||
|
||||
@@ -5,11 +5,13 @@
|
||||
<f:layout name="Default"/>
|
||||
|
||||
<f:section name="Main">
|
||||
<ep:container data="{data}">
|
||||
<div class="w-full aspect-w-16 aspect-h-9 mb-8"
|
||||
data-controller="osm"
|
||||
data-osm-markers-value='{markerData -> f:format.raw()}'></div>
|
||||
</ep:container>
|
||||
<f:if condition="{markerData}">
|
||||
<ep:container data="{data}">
|
||||
<div class="w-full aspect-w-16 aspect-h-9 mb-8"
|
||||
data-controller="osm"
|
||||
data-osm-markers-value='{markerData -> f:format.raw()}'></div>
|
||||
</ep:container>
|
||||
</f:if>
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user