diff options
author | Sem <sembrestels@riseup.net> | 2012-08-01 21:04:49 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-08-01 21:04:49 +0200 |
commit | 454eef0037445af1657641c656eca55914ea345d (patch) | |
tree | 7881f2107d9d7cb8064f5e298ecadf81830b326e | |
parent | 7f3804f2077c40f1960c717478dece778161c05c (diff) | |
download | elgg-454eef0037445af1657641c656eca55914ea345d.tar.gz elgg-454eef0037445af1657641c656eca55914ea345d.tar.bz2 |
Added elgg-lightbox-photo and elgg-lightbox-gallery support.
-rw-r--r-- | views/default/js/lightbox.php | 9 |
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() { |