]> _ Git - fluidbook-html5.git/commitdiff
wait #7153 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Oct 2024 14:42:06 +0000 (16:42 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Oct 2024 14:42:06 +0000 (16:42 +0200)
js/libs/fluidbook/slideshow/fluidbook.slideshow.dummy.js
js/libs/fluidbook/slideshow/fluidbook.slideshow.js
js/libs/fluidbook/slideshow/fluidbook.slideshow.splide.js
js/libs/fluidbook/slideshow/fluidbook.slideshow.vacheron.js

index a5804f6741aefc3e9248784ce10ecbfb826b59b5..0886374d13b218fd37b95e3a15b2e07469476006 100644 (file)
@@ -1,5 +1,6 @@
 function FluidbookDummySlideshow(fluidbook) {
     this.fluidbook = fluidbook;
+    this.name='dummy';
     this.intervalHandle = null;
     this.timeoutHandle = null;
     this.initEvents();
index ea22a6bce90d9aa9894265d7206d09eb62bab428..a10a17e248d6de0c0ac06701425cb4f62dd76ac9 100644 (file)
@@ -14,6 +14,7 @@ function FluidbookSlideshow(fluidbook) {
                 if (window.FluidbookDummySlideshow !== undefined) {
                     $this.instances[s] = new FluidbookDummySlideshow($this.fluidbook);
                 }
+                break;
             case 'vacheron':
                 if (window.FluidbookVacheronSlideshow !== undefined) {
                     $this.instances[s] = new FluidbookVacheronSlideshow($this.fluidbook);
index be822dacd3dd654abdfe1181c9f3a98d646d42da..15f9dcf09136c7973d7435198bb979187ffbe3fd 100644 (file)
@@ -1,5 +1,6 @@
 function FluidbookSplideSlideshow(fluidbook) {
     this.fluidbook = fluidbook;
+    this.name = 'splide';
 }
 
 FluidbookSplideSlideshow.prototype = {
index 5d202ce790fea6d4188d41a2b72a3dfec5daec5e..031295eb05fb64ec0608fa1014a85301903c4651 100644 (file)
@@ -1,5 +1,6 @@
 function FluidbookVacheronSlideshow(fluidbook) {
     this.fluidbook = fluidbook;
+    this.name='vacheron';
     this.initEvents();
 }
 
@@ -25,6 +26,7 @@ FluidbookVacheronSlideshow.prototype = {
     },
 
     initSlideshow: function (s) {
+
         this.nb = $(s).find('.fb-slideshow-slide').length;
         $(s).data('nbslides', this.nb);
         var context = $(s).closest('.fb-slideshow-wrapper').hasClass('fb-slideshow-inline') ? 'inline' : 'popup';