eostrom/colorbox-rails — pull request #1 by whatcould (2012-05-08 21:53:37+00:00)
Title: Allow image grouping

Hi,

The way this library is set up, with the "live" adding of colorbox links, there's no way to do image grouping -- adding, eg, rel="group1" to a few images to get "image 1 of 3" notes and Next/previous buttons.

I changed the API slightly, not sure if you want to do that but here's a pull request in case.

The only change is: To get the library to work for new links added LIVE to the dom, you have to set :data => {:colorbox => 'live'}. Otherwise, you can leave it set to :colorbox => 'true' (or true, without the quotes), and it will work normally, except you can also add rel= attributes on the link, to create groupings.

Hope that's clear?

Thanks for keeping up your fork.

David