From aa1aa65ed80513c63daab8a0cb96e673b17104a8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 2 Jul 2018 16:33:57 +0300 Subject: add locations to search results --- js/read.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/read.js b/js/read.js index acce8be..5739799 100644 --- a/js/read.js +++ b/js/read.js @@ -284,7 +284,7 @@ function search() { $.each(results, function (i, row) { var a = $("") .attr('href', '#') - .html(row.excerpt) + .html("" + window.book.locations.locationFromCfi(row.cfi) + "" + row.excerpt) .attr('data-cfi', row.cfi) .attr('data-id', row.id) .click(function() { -- cgit v1.2.3