aboutsummaryrefslogtreecommitdiff
path: root/views/default/js
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-01 21:04:49 +0200
committerSem <sembrestels@riseup.net>2012-08-01 21:04:49 +0200
commit454eef0037445af1657641c656eca55914ea345d (patch)
tree7881f2107d9d7cb8064f5e298ecadf81830b326e /views/default/js
parent7f3804f2077c40f1960c717478dece778161c05c (diff)
downloadelgg-454eef0037445af1657641c656eca55914ea345d.tar.gz
elgg-454eef0037445af1657641c656eca55914ea345d.tar.bz2
Added elgg-lightbox-photo and elgg-lightbox-gallery support.
Diffstat (limited to 'views/default/js')
-rw-r--r--views/default/js/lightbox.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/default/js/lightbox.php b/views/default/js/lightbox.php
index a7beaadcc..6e910f635 100644
--- a/views/default/js/lightbox.php
+++ b/views/default/js/lightbox.php
@@ -26,6 +26,15 @@ elgg.provide('elgg.ui.lightbox');
elgg.ui.lightbox.init = function() {
$(".elgg-lightbox").colorbox();
+ $(".elgg-lightbox-photo").colorbox({photo: true});
+ var n = 0;
+ $(".elgg-lightbox-gallery").each(function() {
+ $(this).find(".elgg-lightbox, .elgg-lightbox-photo")
+ .addClass("elgg-lightbox-" + n)
+ .colorbox({
+ rel: "elgg-lightbox-" + n++,
+ });
+ });
}
elgg.ui.lightbox.close = function() {