]> _ Git - fluidbook-html5.git/commitdiff
Merge remote-tracking branch 'origin/burgermenu' into searchengine
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Sep 2017 16:18:54 +0000 (18:18 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 20 Sep 2017 16:18:54 +0000 (18:18 +0200)
# Conflicts:
# js/libs/fluidbook/fluidbook.js
# js/libs/fluidbook/fluidbook.nav.js
# js/main.js

1  2 
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.menu.js
js/main.js
style/fluidbook.less

Simple merge
Simple merge
diff --cc js/main.js
index d3c08a450c07ec1fb650c5420dc0b826f2b98308,2e4a21b58aae9979da0c616e7b7afa8b51669778..2e5f9e931bf83c39c24bea5adbce19697922c71a
@@@ -503,12 -502,18 +503,17 @@@ function setBackground(page, resolution
  }
  
  function searchHints() {
 -    if ($("#q").val().length >= 3) {
 -        fluidbook.initSearchHints();
 -        fluidbook.getSearchHints($("#q").val());
 +    if ($("#q").val().length >= 1) {
++        fluidbook.search.initSearchHints();
 +        fluidbook.search.getSearchHints($("#q").val());
      } else {
          try {
-             fluidbook.search.hideSearchHints();
+             if ($("#q").val().length == 0) {
 -                fluidbook.hideSearchHints();
 -                fluidbook.hideSearchResults();
++                fluidbook.search.hideSearchHints();
++                fluidbook.search.hideSearchResults();
+                 fluidbook.showMenuItems(); // Show main menu items that were hidden previously
+             }
          } catch (err) {
 -
          }
      }
  }
Simple merge