From: Vincent Vanwaelscappel Date: Mon, 7 Dec 2020 14:57:12 +0000 (+0100) Subject: wait #4114 @0:25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5b8a77ac473ee7390f59e9cffb4b9ec27a165c71;p=fluidbook-html5.git wait #4114 @0:25 --- diff --git a/js/libs/fluidbook/slideshow/fluidbook.slideshow.js b/js/libs/fluidbook/slideshow/fluidbook.slideshow.js index 3cb5531f..eae4cb91 100644 --- a/js/libs/fluidbook/slideshow/fluidbook.slideshow.js +++ b/js/libs/fluidbook/slideshow/fluidbook.slideshow.js @@ -67,6 +67,7 @@ FluidbookSlideshow.prototype = { }, initSlideshow: function (s, context) { var s = this.normalizeSlideshowElement(s); + if (context === 'popup') { this.initPopupSlideshow(s); } else if (context === 'inline') { diff --git a/js/libs/fluidbook/slideshow/fluidbook.slideshow.splide.js b/js/libs/fluidbook/slideshow/fluidbook.slideshow.splide.js index 37573f43..be822dac 100644 --- a/js/libs/fluidbook/slideshow/fluidbook.slideshow.splide.js +++ b/js/libs/fluidbook/slideshow/fluidbook.slideshow.splide.js @@ -33,10 +33,9 @@ FluidbookSplideSlideshow.prototype = { arrows: true, }; - this.primarySlider = new Splide(this.slideshowID, slideshowSettings); - + this.primarySlider = new Splide('#' + this.slideshowID, slideshowSettings); if (this.showThumbnails) { - this.thumbSlider = new Splide(this.thumbnailsID, { + this.thumbSlider = new Splide('#' + this.thumbnailsID, { autoWidth: true, // Height is handled by the CSS start: openIndex, gap: 10, @@ -209,7 +208,7 @@ FluidbookSplideSlideshow.prototype = { return {w: w, h: h, fullscreen: fullscreen}; }, - resizeInline:function(){ + resizeInline: function () { }, };