From: Stephen Cameron Date: Mon, 28 Aug 2017 16:07:40 +0000 (+0200) Subject: Merge latest changes from master and adapt highlighting to work with burgermenu searc... X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e8a2f245c171d2b41571d48b016014fcf30c85ce;p=fluidbook-html5.git Merge latest changes from master and adapt highlighting to work with burgermenu search code. WIP #807 @2.5 --- diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index c9edbf28..4ac825ca 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -644,7 +644,9 @@ FluidbookNav.prototype = { }); - // Todo: handle results.terms here... Highlighting? + // Set Highlighting of results keywords + $this.fluidbook.search.setHighlightTerms(results.terms); + $this.fluidbook.search.highlightSearchTerms($this.fluidbook.currentPage); fluidbook.hideSearchHints();