]> _ Git - fluidbook-html5.git/commitdiff
Merge latest changes from master and adapt highlighting to work with burgermenu searc...
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 28 Aug 2017 16:07:40 +0000 (18:07 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 28 Aug 2017 16:07:40 +0000 (18:07 +0200)
js/libs/fluidbook/fluidbook.nav.js

index c9edbf28efeb1aac04b5752bdfb98f0fd6048313..4ac825caef2d723b853f5fb640a52be6c0c742cc 100644 (file)
@@ -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();