Active
Project:
Views Slideshow JCarousel
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2012 at 07:58 UTC
Updated:
27 Jun 2012 at 03:30 UTC
If you have a Views Slideshow slideshow with a Views Slideshow JCarousel carousel pager in it and display that slideshow+pager within a Colorbox, the pager misbehaves and there are javascript errors. On Chrome, the errors are:
Uncaught TypeError: Object close has no method 'call' jquery.colorbox-min.js:192
Uncaught Error: jCarousel: No width/height set for items. This will cause an infinite loop. Aborting... jquery.jcarousel.min.js:16
A similar error is seen in Firefox (about the call method).
Issue #1258544: jCarousel should call Drupal.attachBehaviors() on AJAX-loaded content (support for Colorbox etc.) talks about adding:
Drupal.attachBehaviors();
so that the JCarousel module code works with Colorbox. I tried adding that in a couple places within the views_slideshow_jcarousel.js file with no luck, but it (or something similar) still might be the right solution.
Comments
Comment #1
kristen polNote that the Views Slideshow JCarousel pager does work within a Lightbox2 overlay.
Also, it is interesting to note that if you debug the pager using Firebug or the Chrome debugger, then the pager works. I suppose it fires some jquery that causes it to get in sync with Colorbox.