]> _ Git - fluidbook-html5.git/commitdiff
wait #5105 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 16 Feb 2022 11:59:03 +0000 (12:59 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 16 Feb 2022 11:59:03 +0000 (12:59 +0100)
js/libs/fluidbook/fluidbook.nav.js

index 7932cbafe9595e1aa8ec5640b2d680d19d2262c8..b2e786b8fd1cb569b206b23ca88d4e6fdccac442 100644 (file)
@@ -588,10 +588,10 @@ FluidbookNav.prototype = {
                     }
 
                     link = $(link).get(0);
-                    if(link===null || link===undefined || link==='undefined'){
-                        link='';
+                    if (link === null || link === undefined || link === 'undefined') {
+                        link = '';
                     }
-                    link=link.outerHTML;
+                    link = link.outerHTML;
                 } else {
                     // Normal link
                     link = '<a href="' + extraURL + '" target="_blank" rel="noopener">' + linkIcon + '</a>';
@@ -781,9 +781,11 @@ FluidbookNav.prototype = {
     },
 
     openSearch: function (q, cb) {
-        if (!fluidbook.search.isSearchActive()) {
-            fluidbook.search.initSearchHints(); // Clears menu and only displays search box
-            this.menuAPI.closeAllPanels(); // Make sure we're on the main panel with the search box
+        if (!this.fluidbook.search.isSearchActive()) {
+            if (!this.fluidbook.settings.searchFullBurger) {
+                this.fluidbook.search.initSearchHints(); // Clears menu and only displays search box
+                this.menuAPI.closeAllPanels(); // Make sure we're on the main panel with the search box
+            }
         }
         this.menuAPI.open();