aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/photos/tidypics.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-01 18:45:25 +0200
committerSem <sembrestels@riseup.net>2012-08-01 18:45:25 +0200
commit6ef62a444fbcebea25cf475613d5cab0c43b58c8 (patch)
treeafaebc49ab4af76beacb5b32754f98882ee0c46b /views/default/js/photos/tidypics.php
parent048c1b586989caa3a8bd0b11ad19442d919dbd67 (diff)
downloadelgg-6ef62a444fbcebea25cf475613d5cab0c43b58c8.tar.gz
elgg-6ef62a444fbcebea25cf475613d5cab0c43b58c8.tar.bz2
Added support for colorbox.
Diffstat (limited to 'views/default/js/photos/tidypics.php')
-rw-r--r--views/default/js/photos/tidypics.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/views/default/js/photos/tidypics.php b/views/default/js/photos/tidypics.php
index c97a1eadb..20dcc403e 100644
--- a/views/default/js/photos/tidypics.php
+++ b/views/default/js/photos/tidypics.php
@@ -9,8 +9,14 @@ elgg.provide('elgg.tidypics');
elgg.tidypics.init = function() {
- if ($(".tidypics-lightbox").length) {
- $(".tidypics-lightbox").fancybox({'type': 'image'});
+ if ($.colorbox) {
+ $(".elgg-gallery .tidypics-lightbox").colorbox({
+ onComplete: function() {
+ $('#cboxLoadedContent .elgg-page-topbar, #cboxLoadedContent .elgg-page-header, ' +
+ '#cboxLoadedContent .elgg-page-footer, #cboxLoadedContent .elgg-sidebar').css('display', 'none');
+ $('#cboxLoadedContent .elgg-layout').css('background-image', 'none');
+ }
+ });
}
$("#tidypics-sort").sortable({