Edgewall Software

Ticket #7830 (new defect)

Opened 7 weeks ago

Last modified 9 days ago

Search highlight not working in Safari, jQuery .each() breaks with "null" elements

Reported by: tumma72@… Owned by: cboos
Priority: normal Milestone: 0.11.3
Component: search system Version: 0.11-stable
Severity: major Keywords: jQuery search javascript
Cc:

Description

The jQuery.each() function breaks in Safari if there are "undefined" (null) elements in the query list, a solution is to filter the query.split removing all elements which are null or with lenght == 0. See attached patch for search.js.

Attachments

search.js.patch (1.2 KB) - added by tumma72@… 7 weeks ago.
search.js patch to save Safari from breaking jQuery

Change History

Changed 7 weeks ago by tumma72@…

search.js patch to save Safari from breaking jQuery

Changed 9 days ago by cboos

  • keywords javascript added; highlight removed
  • owner set to cboos
  • milestone set to 0.11.3

The problem also happens when using Chrome.

Add/Change #7830 (Search highlight not working in Safari, jQuery .each() breaks with "null" elements)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.