Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6408 closed enhancement (fixed)

Upgrade Trac to jQuery 1.2.1

Reported by: Christian Boos Owned by: Jonas Borgström
Priority: normal Milestone: 0.11
Component: general Version: devel
Severity: minor Keywords: jquery
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Since r6247, Trac 0.11dev is using jQuery 1.1.4.

I just tried jQuery 1.2.1, and it seems to work quite nicely as well.

So far, the only change needed was to replace the use of the XPath style selector (there's only one):

  • trac/ticket/templates/ticket.html

     
    2626        $("#changelog h3.change").addAnchor("Link to this change");
    2727
    2828        /* only enable control elements for the currenly selected action */
    29         var actions = $("fieldset[@id='action']//input[@name='action']");
     29        var actions = $("fieldset input[name='action']");
    3030        /* ... as Opera doesn't like $("#action input[@name=action]") */
    3131
    3232        function updateActionFields() {

The above works fine with Opera as well (see r5103).

Further testing needed.

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 17 years ago

Resolution: fixed
Status: newclosed

Done in [6263].

I haven't detected any problem yet with that upgrade, so I think it's relatively safe to do it before beta1.

If you discover any issue with jQuery 1.2.1, please reopen this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.