Installed fancybox . Made event handler:
$('a.fancybox-a-img').click(function() { $(this).fancybox({ helpers: { title : { type : 'float' } }, 'showCloseButton': true }); return false; }); The problem is that when you first open the image you need to click twice. After it opens it opens the first time.
What could it be? looked at the events in chrome - only mine. no others.