Closed (won't fix)
Project:
Thickbox
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2010 at 17:49 UTC
Updated:
25 Jan 2012 at 13:22 UTC
Found that thickbox fails to show images in popup if URL of these images looks like:
http://domain.com/?q=system/files/imagecache/sideimage/share/informative...
Instead showing it in iFrame, thickbox tries to load it via AJAX as HTML content.
This happens in thickbox.js file - it detect images by /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/ from baseURL. I propose to use regexp /\.jpg(?:$|\&)|\.jpeg(?:$|\&)|\.png(?:$|\&)|\.gif(?:$|\&)|\.bmp(?:$|\&)/ from url instead.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| thickbox.js_.patch | 568 bytes | pavel.karoukin |
Comments
Comment #1
frjo commentedWould it not be easier to just turn on Clean URLs?
Any how, I suggest you try out the Colorbox module, http://drupal.org/project/colorbox as Thickbox replacement.
The Thickbox script is getting a bit old and I think Colorbox could be a good upgrade path. I have been made a co-maintainer of Colorbox and have ported over all of Thickbox features to it. Just released a new beta today.
Comment #2
pavel.karoukin commentedIn my application (it's intranet) I can't use clean urls. And I know thickbox is old, but since it still there and patch is really simple - why not do it? =)
Comment #3
frjo commentedComment #4
erik seifert commentedSame problem here. Should really be fixed.