Opened 15 years ago
Closed 15 years ago
#8594 closed enhancement (fixed)
obsolete JQuery in trac.js
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.6 |
Component: | web frontend | Version: | 0.11-stable |
Severity: | normal | Keywords: | jquery |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
trac.js uses JQuery's 1.1 [@selectors]
, which are considered deprecated in JQuery 1.2, and fail completely in current version of JQuery (1.3).
Patch:
--- trac.js.orig 2009-08-24 15:15:45.000000000 +0200 +++ trac.js 2009-08-24 15:14:19.000000000 +0200 @@ -2,7 +2,7 @@ $.fn.addAnchor = function(title) { title = title || "Link here"; - return this.filter("*[@id]").each(function() { + return this.filter("*[id]").each(function() { $("<a class='anchor'> \u00B6</a>").attr("href", "#" + this.id) .attr("title", title).appendTo(this); }); @@ -25,7 +25,7 @@ this.disabled = !enabled; var label = $(this).parents("label"); if (!label.length && this.id) { - label = $("label[@for='" + this.id + "']"); + label = $("label[for='" + this.id + "']"); } if (!enabled) { label.addClass("disabled");
Attachments (0)
Change History (8)
follow-up: 5 comment:1 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
follow-ups: 6 7 comment:3 by , 15 years ago
Milestone: | → 0.11.6 |
---|---|
Owner: | set to |
Status: | reopened → new |
I think we can find a middle ground: making Trac itself compatible with jQuery 1.3 and still bundle jQuery 1.2.6.
That way, people knowing they don't use any problematic plugin can upgrade by themselves to jQuery 1.3 simply by replacing jquery.js.
comment:5 by , 15 years ago
comment:6 by , 15 years ago
Replying to cboos:
I think we can find a middle ground: making Trac itself compatible with jQuery 1.3 and still bundle jQuery 1.2.6.
That way, people knowing they don't use any problematic plugin can upgrade by themselves to jQuery 1.3 simply by replacing jquery.js.
Exaclly. JQuery 1.2 code is compatible with 1.3. What I'm complaining about is JQuery 1.1 code.
comment:7 by , 15 years ago
Replying to cboos:
I think we can find a middle ground: making Trac itself compatible with jQuery 1.3 and still bundle jQuery 1.2.6.
Fair enough. I just didn't see this as fitting the "only considering serious bug fixes and eventually performance tweaks" criterion.
comment:8 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yep, and that was fixed in trunk (see [7982]), which has JQuery 1.3. In #7982 it was decided to leave 0.11-stable at 1.2.