fancyapps/fancyBox — Issue #51: Fancybox thumbnail helper using $ in inline javascript
Author: sbenes
Created: 2011-12-09 21:40:15+00:00
State: open

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!