From: Sem Date: Fri, 10 Aug 2012 17:26:42 +0000 (+0200) Subject: Added colorbox support. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=822b97cd05b048f88a78622fbff5322e42b05d69;p=lorea%2Felgg.git Added colorbox support. --- 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; }