diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-05-29 12:35:20 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-05-29 12:35:20 +0200 |
commit | f22f6fd7a985b773bce95accf5172cdc2524575c (patch) | |
tree | e2c26e20d53772895cff9fb1128b12185b1ae90a /views/default | |
parent | b8c3767f8c790febb35141919936d616d3ebe2d4 (diff) | |
download | elgg-f22f6fd7a985b773bce95accf5172cdc2524575c.tar.gz elgg-f22f6fd7a985b773bce95accf5172cdc2524575c.tar.bz2 |
added lightbox support for full calendar events
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/event_calendar/full_calendar_view.php | 5 |
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; } }; |