Open lsjack93 opened 7 years ago
Hi, i try to do this, works, but the scrollbar always bugs! Create a little space, between the page and the scrollbar, i don't know why!
$(document).ready(function() { $(document).on('click', '[data-toggle="lightbox"]', function(event) { event.preventDefault(); var $lightboxphoto = $('.ekko-lightbox'); if ($lightboxphoto !== undefined){ $lightboxphoto.modal('hide'); } return $(this).ekkoLightbox(); }); });
Hi, i try to do this, works, but the scrollbar always bugs! Create a little space, between the page and the scrollbar, i don't know why!