From e8a2f245c171d2b41571d48b016014fcf30c85ce Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 28 Aug 2017 18:07:40 +0200 Subject: [PATCH] Merge latest changes from master and adapt highlighting to work with burgermenu search code. WIP #807 @2.5 --- js/libs/fluidbook/fluidbook.nav.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.5