2022-11-24 22:48:08 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$.fancybox.defaults.loop = "true";
|
2022-12-05 11:46:18 +00:00
|
|
|
// this disables the colorbox hook found in frio/js/modal.js:34
|
2022-12-04 23:54:04 +00:00
|
|
|
$("body").off("click", ".wall-item-body a img");
|
2022-12-18 23:52:31 +00:00
|
|
|
|
|
|
|
// Adds ALT/TITLE text to fancybox
|
|
|
|
$('a[data-fancybox').fancybox({
|
|
|
|
afterLoad : function(instance, current) {
|
|
|
|
current.$image.attr('alt', current.opts.$orig.find('img').attr('alt') );
|
|
|
|
current.$image.attr('title', current.opts.$orig.find('img').attr('title') );
|
|
|
|
}
|
|
|
|
});
|
2022-11-24 22:48:08 +00:00
|
|
|
});
|