Dynamic Views disables Thickbox [workaround in comment #1]

sovietfunk - August 21, 2007 - 11:18
Project:Dynamic Views
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have used dynamic views for sub-category selection filters on a site I'm building. But it seems that the "AHAH goodness" is disabling thickbox functionality. My guess is that I have to re-initialise thickbox upon every content load from Dynamic Views, by calling TB_init() somewhere in your js. Can anyone help me find out where in the dynamicviews js'es I should do this? And maybe exactly how?

This may qualify as a bug, too. And if it is so because of something in Thickbox.module, please tell me and I'll redirect the issue.

Thank you very much for an excellent module.

#1

sovietfunk - August 21, 2007 - 11:36
Title:Dynamic Views disables Thickbox» Dynamic Views disables Thickbox [workaround in comment #1]

I got it to work by adding TB_init(); right below setupViews(); on line #213 in dynamic_views.js.
This is not a clever catch-all fix. I guess there should be a function to check for the thickbox module (or the thickbox js functions) and apply init if necessary. OR, thickbox devs should deal with this? It may also affect other jquery-stuff, but I am only aware of this problem.

#2

sarvab - August 21, 2007 - 14:08

Thanks for the report. I definitely see this as being an issue not only with thickbox but possibly other ajax features well. I'm glad you got it working for your setup, and I'll look through it and see if there is a more general fix sometime when I have the time.

 
 

Drupal is a registered trademark of Dries Buytaert.