Replies: 0
Hello. I have an issue trying to fire the lightbox(ari fancy lightbox) from a gallery using “Responsive Gallery Grid” plugin, contained in a “collapse-o-matic” accordion. The lightbox works, but after 5″ you cannot click on images anymore. I found that this only happens when I include a google map on that page. It only happens with RGG gallery, not single images. I tried a lot with my zero knowledge of javascript and I managed to solve it with a “window refresh” function but now it has some short delay when opening the lightbox. I would appreciate if you could check my test page
http://tripinpictures.com/test-page1/
and javascript code.
jQuery(‘document’).ready(function () {
jQuery ( function($) {
$(‘.collapseomatic’).on(‘click’, function(event) {
jQuery(window).resize();
} );
$(document).on(‘click’, ‘.ari-fancybox ‘ , function() {
jQuery(window).resize();
});
} );
} );
Do you think my code is correct? There must be a better way except from resizing the window in every click, which delays the lightbox.