]> _ Git - fluidbook-html5.git/commitdiff
wait #4143 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 18 Dec 2020 15:14:39 +0000 (16:14 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 18 Dec 2020 15:14:39 +0000 (16:14 +0100)
js/libs/fluidbook/fluidbook.search.js

index 9c131d47659ca3ade2218fd055b9846832001ac0..353f6ef29abf988016143c575834c51aa41d28b5 100644 (file)
@@ -758,6 +758,10 @@ FluidbookSearch.prototype = {
 
         // Display results
 
+        if (this.menuSearchResults === undefined) {
+            this.initSearchResults();
+        }
+
         // Use the index of all pages as a starting point to filter results thumbnails
         this.menuSearchResults.html(this.fluidbook.menu.index._getSearchResultsView()).hide();