Commit acf6798d authored by Ujvari Gergely's avatar Ujvari Gergely

fix: missing highlightText field

parent 371a9ec5
......@@ -452,6 +452,8 @@ class Search
child.text.toLowerCase().indexOf($routeParams.in_body_text) > -1
#Add highlight
child.highlightText = child.text.replace $scope.text_regexp, $scope.highlighter
else
child.highlightText = child.text
unless annotation.id in $scope.search_filter or hit_in_children
continue
if $routeParams.whole_document or annotation in $scope.annotations
......@@ -459,6 +461,8 @@ class Search
annotation.text.toLowerCase().indexOf($routeParams.in_body_text) > -1
#Add highlight
annotation.highlightText = annotation.text.replace $scope.text_regexp, $scope.highlighter
else
annotation.highlightText = annotation.text
threads.push thread
$scope.threads = threads
#Replace this with threading call
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment