1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 13:52:56 +02:00

- Flextype Default Theme: issue with TypeError: undefined is not an object for lightbox - fixed. #182

This commit is contained in:
Awilum
2019-07-06 15:33:45 +03:00
parent 606b4303cc
commit 04ee2ce064

View File

@@ -76,8 +76,11 @@
<script src="//unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
<script type="text/javascript">
var lightbox = $('.gallery-grid a').simpleLightbox({'fileExt': false});
if ($('.gallery-grid a').length) {
var lightbox = $('.gallery-grid a').simpleLightbox({'fileExt': false});
}
if ($('.gallery-grid').length) {
var $grid = $('.gallery-grid').imagesLoaded()
.done( function( instance ) {
$('.preloader').hide();
@@ -89,6 +92,7 @@
.progress( function( instance, image ) {
});
}
</script>
{{ emitter.emit('onThemeTail') }}