Closed daslicht closed 7 years ago
Did you get an answer to this? I have the same issue when I change any of the class or tag names…
I have solved it like this in octobercms:
<a class="hidden-xs-down fullscreen-button" id="{{ fullscreenButtonID }}" href="#{{ name }}"></a>
<div id="{{ name }}">
{#THIS IS IMPORTANT! to close the modal, the name has to match the name given on the ID class="close-animatedModal"#}
<div id='bt' class="close-{{ name }} text-xs-center close-animated-modal"></div>
<div class="modal-content">
{% component modalContent %}
</div>
</div>
var initializeAnimatedModal = function( fullscreenButtonID, name, fullscreenSlideshowID ) {
$(fullscreenButtonID).animatedModal({
color: "#fff",
overflow:"hidden",
modalTarget: name,
beforeOpen: function () { // not working properly in safari....
$(fullscreenSlideshowID).slick('setPosition');
},
afterOpen: function () { // ... safari fix.
$(fullscreenSlideshowID).slick('setPosition');
},
});
}
initializeAnimatedModal( "#shippingFullscreenButton", "shippingAnimatedModal", "#fullscreenShippingSlideshowHTML" );
i think using modalTarget: name,
was the key
$("#demo02").animatedModal({ modalTarget: 'customdividname' });
why is this code invalid :
I don't get any error but the content is just shown ?