aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-10 19:26:42 +0200
committerSem <sembrestels@riseup.net>2012-08-10 19:26:42 +0200
commit822b97cd05b048f88a78622fbff5322e42b05d69 (patch)
tree39f54a5852c3043b9f7f3227c9dfcde5aceb242f /views
parenta27489bc198343d76376a6b16e4bcd81fd9a85ae (diff)
downloadelgg-822b97cd05b048f88a78622fbff5322e42b05d69.tar.gz
elgg-822b97cd05b048f88a78622fbff5322e42b05d69.tar.bz2
Added colorbox support.
Diffstat (limited to 'views')
-rw-r--r--views/default/event_calendar/full_calendar_view.php7
1 files changed, 5 insertions, 2 deletions
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;
}