friendica/view/js/fancybox/fancybox.config.js

11 lines
406 B
JavaScript
Raw Permalink Normal View History

2023-05-03 22:59:28 +02:00
$(document).ready(function() {
$.fancybox.defaults.loop = "true";
$.fancybox.defaults.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') );
};
$.fancybox.defaults.caption = function (instance, slide, caption) {
return slide.$thumb.attr('alt');
};
});