02.10.09
jQuery 1.3 (or 1.3.1) + Thickbox 3.1 = Broken: It Loads Forever
Posted by ryan in jquery
At least a week after upgrading to jQuery 1.3.1, I discovered that all my Thickbox images had cease to function. If you're here, then you've already made the biggest step towards recovery: discovering that your thickbox is broken.
Fixing Thickbox 3.1 for jQuery 1.3.
As of jQuery 1.3, the The '@' in [@attr] has been removed. Thickbox uses this on line 79. The solution is simple: just remove the @:
// thickbox.js
// old line 79
TB_TempArray = $("a[@rel="+imageGroup+"]").get();
// new line 79
TB_TempArray = $("a[rel="+imageGroup+"]").get();
You can also download the full file here: thickbox3.1-fixed.js.










Leave a reply