Ticket #13371 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

Highlight search terms script not running after AJAX refresh of search

Reported by: davidjonasdesign@… Owned by:
Priority: minor Milestone: 4.x
Component: JavaScript Version: 4.2
Keywords: search, highlight, ajax, update Cc: maartenkling

Description

When we update the AJAX search results (make a new search or switch pages on the batch) the search term highlighter is not called again.

Seems like a simple fix by adding:

$('#region-content,#content').highlightSearchTerms({ includeOwnDomain: $('dl.searchResults').length === 0 });

On the request success after the update of the page info.

Change History

comment:1 Changed 3 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Unknown to JavaScript

[does it still make sense having "JavaScript" as a separate Component?]

comment:2 Changed 3 years ago by maartenkling

  • Cc maartenkling added
Note: See TracTickets for help on using tickets.