Opened 5 years ago

Closed 5 years ago

#13539 closed defect (fixed)

Don't work on Trac 1.2

Reported by: covax Owned by: Ryan J Ollos
Priority: low Component: JqChartMacro
Severity: normal Keywords: JavaScript, jquery migration
Cc: Trac Release: 1.2


On a wiki page with "JqChartMacro" appear ERROR: Uncaught TypeError: Cannot read property 'msie' of undefined in "jquery.jqplot.min.js" file.

I patched him. Just Add

jQuery.browser = {};
(function () {
    jQuery.browser.msie = false;
    jQuery.browser.version = 0;
    if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
        jQuery.browser.msie = true;
        jQuery.browser.version = RegExp.$1;

in header of the jquery.jqplot.min.js file

Please, add this patch in the main branch.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Ryan J Ollos

Owner: changed from Pablo to Ryan J Ollos
Status: newaccepted

comment:2 Changed 5 years ago by Ryan J Ollos

In 17353:

1.0dev: Make compatible with Trac 1.2

  • Upgrade jqPlot to 1.0.9
  • Use Trac 1.0 database API

Refs #13539.

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 17354:

1.0dev: Require Trac >= 1.0

Fixes #13539.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.