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 |
Jump to:
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
I got it to work by adding
TB_init();right belowsetupViews();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
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.