]> _ Git - fluidbook-html5.git/commitdiff
wait #8014 @1:10
authorsoufiane <soufiane@cubedesigners.com>
Wed, 18 Feb 2026 11:58:21 +0000 (12:58 +0100)
committersoufiane <soufiane@cubedesigners.com>
Wed, 18 Feb 2026 11:58:21 +0000 (12:58 +0100)
js/libs/fluidbook/fluidbook.burger.js
js/libs/fluidbook/fluidbook.search.js

index 2fcad17c9a6b07e5edc99eabd83359172534a9b0..19b7a957951c0236b92936c7b9c26053d3bf7023 100644 (file)
@@ -389,8 +389,7 @@ FluidbookBurger.prototype = {
             e.push($(this).attr('term'));
             $("#q").val(e.join(' '));
             if($this.fluidbook.search.isSearchfloatActive) {
-                var pageNumber = parseInt($("#menuSearchResults a").find('.doubleThumb').attr('page'));
-                $this.fluidbook.search.openResultsNav(pageNumber);
+                // Empty
             } else {
                 $("#searchForm").submit();
             }
index 0a7d71dbcad58f49041bd8ded7d7ce9677d870e8..7b939e99f3dd92319f4cac8dd03bab187538576d 100644 (file)
@@ -140,7 +140,6 @@ FluidbookSearch.prototype = {
         // to even and remove duplicates created.
         if(this.callNumber < 1) {
             if (this.fluidbook.resize.orientation === "landscape") {
-                console.log("is landscape =====>",this.fluidbook.resize.orientation);
 
                 const noOddPages = this.resultPages.map(function (page) {
                     if (page % 2 === 1) page--; // Change to preceding even number
@@ -163,7 +162,7 @@ FluidbookSearch.prototype = {
 
             const counterText = resultPagePosition + '/' + this.resultNavPages.length;
 
-            this.resultsNav.find('.searchResultsNavQuery').text($('#q').val());
+            this.resultsNav.find('.searchResultsNavQuery').text('').text($('#q').val());
             this.resultsNav.find('.searchResultsNavCounter').text(counterText);
             this.callNumber = 1;
         }