aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar/full_calendar_view.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-05-29 12:35:20 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-05-29 12:35:20 +0200
commitf22f6fd7a985b773bce95accf5172cdc2524575c (patch)
treee2c26e20d53772895cff9fb1128b12185b1ae90a /views/default/event_calendar/full_calendar_view.php
parentb8c3767f8c790febb35141919936d616d3ebe2d4 (diff)
downloadelgg-f22f6fd7a985b773bce95accf5172cdc2524575c.tar.gz
elgg-f22f6fd7a985b773bce95accf5172cdc2524575c.tar.bz2
added lightbox support for full calendar events
Diffstat (limited to 'views/default/event_calendar/full_calendar_view.php')
-rw-r--r--views/default/event_calendar/full_calendar_view.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/event_calendar/full_calendar_view.php b/views/default/event_calendar/full_calendar_view.php
index 5fffff624..d7b6d97a2 100644
--- a/views/default/event_calendar/full_calendar_view.php
+++ b/views/default/event_calendar/full_calendar_view.php
@@ -1,5 +1,7 @@
<?php
elgg_load_js('elgg.full_calendar');
+elgg_load_js('lightbox');
+elgg_load_css('lightbox');
// TODO: is there an easy way to avoid embedding JS?
?>
@@ -7,7 +9,8 @@ elgg_load_js('elgg.full_calendar');
handleEventClick = function(event) {
if (event.url) {
- window.location.href = event.url;
+ //window.location.href = event.url;
+ $.fancybox({'href':event.url});
return false;
}
};