Modify ↓
      
Opened 17 years ago
Closed 17 years ago
#7830 closed defect (fixed)
Search highlight not working in Safari, jQuery .each() breaks with "null" elements
| Reported by: | 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: | |||
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 (1)
Change History (4)
by , 17 years ago
| Attachment: | search.js.patch added | 
|---|
comment:1 by , 17 years ago
| Keywords: | javascript added; highlight removed | 
|---|---|
| Milestone: | → 0.11.3 | 
| Owner: | set to | 
The problem also happens when using Chrome.
comment:2 by , 17 years ago
| Milestone: | 0.11.4 → 0.11.3 | 
|---|
comment:3 by , 17 years ago
| Resolution: | → fixed | 
|---|---|
| Severity: | major → normal | 
| Status: | new → closed | 
Fixed in r7845.
  Note:
 See   TracTickets
 for help on using tickets.
    


  
search.js patch to save Safari from breaking jQuery