aboutsummaryrefslogtreecommitdiff
path: root/views/default/js
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js')
-rw-r--r--views/default/js/photos/tidypics.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/js/photos/tidypics.php b/views/default/js/photos/tidypics.php
index 896192eea..c97a1eadb 100644
--- a/views/default/js/photos/tidypics.php
+++ b/views/default/js/photos/tidypics.php
@@ -9,7 +9,9 @@ elgg.provide('elgg.tidypics');
elgg.tidypics.init = function() {
- $(".tidypics-lightbox").fancybox({'type': 'image'});
+ if ($(".tidypics-lightbox").length) {
+ $(".tidypics-lightbox").fancybox({'type': 'image'});
+ }
$("#tidypics-sort").sortable({
opacity: 0.7,