Opened 2 years ago

Last modified 2 years ago

#27534 new defect

Trac's autocomplete.js logs $.browser is undefined

Reported by: traumschule Owned by: qbi
Priority: Medium Milestone:
Component: Internal Services/Service - trac Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


JavaScript error: http://ea5faa5po25cf7fb.onion/projects/tor/chrome/autocomplete/js/autocomplete.js, line 96: TypeError: $.browser is undefined

$.browser.opera && $(input.form).bind("submit.autocomplete", function () {

is better written

typeof $.browser.opera !== 'undefined' && $(input.form).bind("submit.autocomplete", function () {

Child Tickets

Change History (1)

comment:1 Changed 2 years ago by traumschule

maybe they forgot some :)

1.2dev: remove browser conditionals in JavaScript code.
The version of jQuery we're now using no longer supports the $.browser feature, and we don't need it anymore anyway.

Trac 1.3 will bundle jQuery 1.12.4 (vs. Autocomplete - jQuery plugin 1.0.2)

current autocomplete.js

Note: See TracTickets for help on using tickets.