I've been using colorbox flawlessly for sometime now in a Views-generated image gallery. Recently I had to use Colorbox Trigger because I needed to include extra fields and a description underneath the images. Unfortunately, Colorbox Trigger adds a 'click' event listener to the images when I specify in views that I want the image in the colorbox to link to 'Nothing' (I'm using the 'Image' formatter).

This 'click' event iterates the content in the colorbox to another item in the gallery, which wouldn't be so terrible except it iterates from item 1 to 2 to 4 to 8 to 16 etc... increasing exponentially until after enough clicks the script just starts auto-cycling through the gallery blindingly fast trying to iterate through 256, 512, 1024 items etc.

Can someone explain what is going on here or how I can debug this? I'm using jQuery 1.7 and tried 1.8 but it makes no difference.

Thanks in advance.

Comments

nodecode’s picture

Allow me to simplify my issue and hopefully someone will respond...

Scenario:
I created a view with a Colorbox Trigger field and inside the colorbox I have an image (linked to nothing) and various other fields. When I open the colorbox and click on the image, the colorbox advances to the next item in the colorbox gallery.

Question #1: Is this normal behavior?

nodecode’s picture

Status: Active » Closed (duplicate)

I figured out this is the fault of the Media Colorbox module #2403423: mediacolorbox.js does not play well with Colorbox Trigger content