Edgewall Software

Opened 14 years ago

Closed 13 years ago

#7830 closed defect (fixed)

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

Reported by: tumma72@… Owned by: Christian Boos
Priority: normal Milestone: 0.11.3
Component: search system Version: 0.11-stable
Severity: normal Keywords: jQuery search javascript
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


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 (1)

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

Download all attachments as: .zip

Change History (4)

by tumma72@…, 14 years ago

Attachment: search.js.patch added

search.js patch to save Safari from breaking jQuery

comment:1 by Christian Boos, 13 years ago

Keywords: javascript added; highlight removed
Milestone: 0.11.3
Owner: set to Christian Boos

The problem also happens when using Chrome.

comment:2 by Christian Boos, 13 years ago


comment:3 by Christian Boos, 13 years ago

Resolution: fixed
Severity: majornormal
Status: newclosed

Fixed in r7845.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.