Opened 9 months ago

Last modified 9 months 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:

Description

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 9 months 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.

https://trac.edgewall.org/changeset/14495

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.