mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-28 21:33:15 +00:00
13 lines
No EOL
512 B
JavaScript
13 lines
No EOL
512 B
JavaScript
$(document).ready(function() {
|
|
$.fancybox.defaults.loop = "true";
|
|
// this disables the colorbox hook found in frio/js/modal.js:34
|
|
$("body").off("click", ".wall-item-body a img");
|
|
|
|
// 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') );
|
|
}
|
|
});
|
|
}); |