From 822b97cd05b048f88a78622fbff5322e42b05d69 Mon Sep 17 00:00:00 2001 From: Sem Date: Fri, 10 Aug 2012 19:26:42 +0200 Subject: Added colorbox support. --- views/default/event_calendar/full_calendar_view.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'views/default') diff --git a/views/default/event_calendar/full_calendar_view.php b/views/default/event_calendar/full_calendar_view.php index 3e0c583ce..7a40c6da9 100644 --- a/views/default/event_calendar/full_calendar_view.php +++ b/views/default/event_calendar/full_calendar_view.php @@ -14,8 +14,11 @@ handleEventClick = function(event) { if (event.is_event_poll) { window.location.href = event.url; } else { - //window.location.href = event.url; - $.fancybox({'href':event.url}); + if ($.fancybox) { + $.fancybox({'href': event.url}); + } else if ($.colorbox) { + $.colorbox({'href': event.url}); + } } return false; } -- cgit v1.2.3