]> _ Git - fluidbook-html5.git/commitdiff
wip #4448 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 10 May 2021 06:28:32 +0000 (08:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 10 May 2021 06:28:32 +0000 (08:28 +0200)
js/libs/fluidbook/fluidbook.loader.js

index cfb26b0e30d9fe7b510f95c057b09581c0d2b231..8cc0d8b9caca083b782111a8b4cabbd95ed449ea 100644 (file)
@@ -295,6 +295,12 @@ FluidbookLoader.prototype = {
             return;
         }
 
+        // The page is already here.
+        if ($(doublePage).find('.' + position + '#page_' + pageNr).length > 0) {
+            callback();
+            return;
+        }
+
         // Si une page de gauche existe déjà dans la double page, on la retire
         $(doublePage).find('.' + position).each(function () {
             if ($(this).attr('id') != 'page_' + pageNr || pageNr == 0) {