From: Vincent Vanwaelscappel Date: Wed, 20 Sep 2017 14:38:37 +0000 (+0200) Subject: #1675 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1ff13290449d69991be0d9c33dcaf02cf63520d9;p=fluidbook-html5.git #1675 --- diff --git a/js/libs/fluidbook/fluidbook.search.js b/js/libs/fluidbook/fluidbook.search.js index 7285c954..a40e4aed 100644 --- a/js/libs/fluidbook/fluidbook.search.js +++ b/js/libs/fluidbook/fluidbook.search.js @@ -39,17 +39,15 @@ FluidbookSearch.prototype = { } var $this = this; loadJSLibrary('data/search.index.js', function () { - loadJSLibrary('data/search.texts.js', function () { - if ($this.highlightEnabled) { - loadJSLibrary('data/search.highlight.js', function () { - $this.indexLoaded = true; - callback(); - }); - } else { + if ($this.highlightEnabled) { + loadJSLibrary('data/search.highlight.js', function () { $this.indexLoaded = true; callback(); - } - }); + }); + } else { + $this.indexLoaded = true; + callback(); + } }); }, _getHints: function (q, callback) {