]> _ Git - fluidbook-html5.git/commitdiff
done #1587 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jul 2017 13:21:18 +0000 (15:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Jul 2017 13:21:18 +0000 (15:21 +0200)
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.menu.js
js/libs/fluidbook/fluidbook.privacy.js

index 37d1fc7d06dbb1386f30611ab21e59260c3730ae..ccff34dc921b40c364d033c1982d000a3ceb8973 100644 (file)
@@ -140,7 +140,7 @@ Fluidbook.prototype = {
             })
         }
 
-        $(this).trigger('fluidbookhidesplash');
+        $(this).trigger('fluidbook.splash.hide');
 
     },
     ready: function () {
index a60fc290bd438c99392fe3a30af4a9fafbfa9f0b..f153283357a29b4b66f4faa396848db8f843188b 100644 (file)
@@ -19,7 +19,13 @@ FluidbookMenu.prototype = {
             return false;
         });
 
-
+        if (this.fluidbook.datas.displayChaptersAtStart) {
+            $(this.fluidbook).on('fluidbook.splash.hide', function () {
+                $this.openView('chapters', '', '', function () {
+                    
+                });
+            });
+        }
     },
 
     viewMode: function () {
index 8dea2e622c32308d5884c9caf9d28814beb2fa58..1072de0bc231a613796a2985343a5a4a7d51d2c3 100644 (file)
@@ -16,7 +16,7 @@ FluidbookPrivacy.prototype = {
         }
 
         var $this = this;
-        $(this.fluidbook).on('fluidbookhidesplash', function () {
+        $(this.fluidbook).on('fluidbook.splash.hide', function () {
             $this.displayCookieConsent();
         });
     },