aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/photos/tidypics.php
diff options
context:
space:
mode:
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({