fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

Fancybox thumbnail helper using $ in inline javascript

Open sbenes opened this issue 14 years ago • 1 comments

We use prototype and jQuery on the same page and for reasons we wrap everything in anonymous functions and pass in jQuery as a parameter. eg (function($){ $.fancybox(); })(jQuery); or jQuery(function($){ });

The problem is the thumbnailer outputs a link tag with inline javascript: href="javascript: $.fancybox.jumpto(idx)"

I think it would be better and safer to either wrap it or just change it to jQuery.fancybox.jumpto(idx);

Thanks!

sbenes avatar Dec 09 '11 21:12 sbenes

Duplicate of #44

fancyapps avatar Dec 09 '11 21:12 fancyapps