Closed (fixed)
Project:
Thickbox
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2007 at 16:38 UTC
Updated:
22 May 2007 at 04:30 UTC
I've tried to use thickbox with node images but nothing really happens. It seems to be caused by the fact that the current version of node_images does not give the "image" and "thumbnail" classes to its thumbs. I've managed to arrange this by hacking the node_images.module, adding the right classes, but then the problem becomes that node_images is still popping-up a window. We should be able to override the onclick="window.open..." call, but I don't know jquery well enough to do that (besides, we shouldn't touch the node_images.module anyhow unless necessary).
Comments
Comment #1
frjo commentedI have never used the node_images module but if someone provide a good patch I will take a look at it.
Comment #2
kleingeist commentedi can confirm this behaviour with the latest HEAD version of the image module. They had a request to change the class due to theming problems: http://drupal.org/node/133127
The changes have been made in revision 1.228, http://cvs.drupal.org/viewcvs/drupal/contributions/modules/image/image.m...
and will be in the official package soon.
What should we do?
We could change the thickbox_auto.js code to match the new class:
$("a[img.image-thumbnail]", context).not(".thickbox").not(".category").each(function(i) {But that will break every installation, which is not using the latest image.module
Comment #3
frjo commentedI went ahed and committed this change, it part of the latest official release of image module.
Comment #4
(not verified) commented