From: Vincent Vanwaelscappel Date: Wed, 16 Feb 2022 11:59:03 +0000 (+0100) Subject: wait #5105 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f6865ec6f7f2fa4eb4aa111830d23dc3a04044d1;p=fluidbook-html5.git wait #5105 @0:05 --- diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index 7932cbaf..b2e786b8 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -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 = '' + linkIcon + ''; @@ -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();