1 $(document).ready(function() {
2 $.fancybox.defaults.loop = "true";
3 // this disables the colorbox hook found in frio/js/modal.js:34
4 $("body").off("click", ".wall-item-body a img");
6 // Adds ALT/TITLE text to fancybox
7 $('a[data-fancybox').fancybox({
8 afterLoad : function(instance, current) {
9 current.$image.attr('alt', current.opts.$orig.find('img').attr('alt') );
10 current.$image.attr('title', current.opts.$orig.find('img').attr('title') );