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
26 26 $("#changelog h3.change").addAnchor("Link to this change"); 27 27 28 28 /* 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']"); 30 30 /* ... as Opera doesn't like $("#action input[@name=action]") */ 31 31 32 32 function updateActionFields() {
The above works fine with Opera as well (see r5103).
Further testing needed.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
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.