]> _ Git - fluidbook-html5.git/commitdiff
wait #8004
authorsoufiane <soufiane@cubedesigners.com>
Wed, 11 Feb 2026 11:09:46 +0000 (12:09 +0100)
committersoufiane <soufiane@cubedesigners.com>
Wed, 11 Feb 2026 11:09:46 +0000 (12:09 +0100)
js/libs/fluidbook/fluidbook.search.js

index 915d38ccf0ced04226485398e05778152434123c..6dd9cd693a7bf15f6135fd292ac53ba0cf5999af 100644 (file)
@@ -46,10 +46,6 @@ FluidbookSearch.prototype = {
             this.isSearchfloatActive = true;
         }
 
-        if(!this.isSearchfloatActive) {
-            this.callNumber = 1;
-        }
-
         this.searchfloat = new FluidbookSearchFloat(this.fluidbook);
     },
 
@@ -134,6 +130,9 @@ FluidbookSearch.prototype = {
     },
 
     updateResultsNav: function (resultPage) {
+        if(!this.isSearchfloatActive) {
+            this.callNumber = 0;
+        }
         // If we are in landscape view, there are 2 pages visible,
         // so we only want even pages in our results. The resultPages
         // includes all pages by default so we need to convert odd pages