From 30e4d9f0a2e45e640de3e57bd5f432022141317c Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 11 Dec 2011 21:32:19 -0500 Subject: add the old slideshow back in --- views/default/js/photos/tidypics.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/default/js') 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, -- cgit v1.2.3