diff --git a/core/vendor/simplelightbox/init.js b/core/vendor/simplelightbox/init.js index 60548378..6aa2c4b4 100644 --- a/core/vendor/simplelightbox/init.js +++ b/core/vendor/simplelightbox/init.js @@ -11,10 +11,4 @@ closeText:"×", captionsData:'alt' }); - var b = new SimpleLightbox('.galleryGalleryPicture', { - captionSelector: "self", - captionType: "data", - captionsData: "caption", - closeText: "×" - }); }); diff --git a/module/gallery/view/gallery/gallery.js.php b/module/gallery/view/gallery/gallery.js.php index df402f14..e6c93639 100644 --- a/module/gallery/view/gallery/gallery.js.php +++ b/module/gallery/view/gallery/gallery.js.php @@ -20,4 +20,10 @@ $(".galleryGalleryPicture").simpleLightbox({ captionsData: "caption", closeText: "×" }); -*/ \ No newline at end of file +*/ +var b = new SimpleLightbox('.galleryGalleryPicture', { + captionSelector: "self", + captionType: "data", + captionsData: "caption", + closeText: "×" +}); \ No newline at end of file