]> git.mxchange.org Git - friendica.git/blob - view/js/fancybox/fancybox.config.js
Remove DI dependency from Module\Contact\Profile
[friendica.git] / view / js / fancybox / fancybox.config.js
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");
5
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') );
11         }
12     });
13 });