From 66dd3f3f5f14bb0ba6d2c7ef83b5b612d5ee2e30 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 15:04:14 -0300 Subject: Squashed 'mod/lightbox/' content from commit a83b8d8 git-subtree-dir: mod/lightbox git-subtree-split: a83b8d89691c31b4568f47790fb40d0bc962aca5 --- views/default/js/lightbox/album.php | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 views/default/js/lightbox/album.php (limited to 'views/default/js/lightbox/album.php') diff --git a/views/default/js/lightbox/album.php b/views/default/js/lightbox/album.php new file mode 100644 index 000000000..19d5dbc04 --- /dev/null +++ b/views/default/js/lightbox/album.php @@ -0,0 +1,8 @@ +$(function(){ + $images = $('.elgg-gallery .lightbox-photo .album-gallery-item a'); + $.each($images, function(i, a) { + a.href = $(a).children().first().attr('src').replace(/size=[^&]*/, "size=full"); + }); + $images.lightBox({txtImage: 'Imagem', + txtOf: 'de'}); +}); -- cgit v1.2.3