fancyapps/fancyBox — Issue #136: .trigger('click') ignores group navigation
Author: rolmos
Created: 2012-02-06 00:04:28+00:00
State: open

When I trigger the lightbox using the following code, I can't navigate through the other elements in its group:

$(".selector").fancybox().trigger('click')

I use this for auto-triggering an element given a URL hash, but can't navigate even when I click out of and back into that element.

var fragment = window.location.hash.substring(1);

if (fragment) {
$("." + fragment).fancybox().trigger('click');
}