aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/lightbox
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/lightbox')
-rw-r--r--views/default/js/lightbox/album.php8
1 files changed, 8 insertions, 0 deletions
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'});
+});