This project is read-only.

Feature addition: set target of calendar event to new window

Oct 17, 2013 at 6:39 PM
I've just implemented this module and I'm really liking it thus far. I'd like to request the addition of a setting to be able to set the target for event links to open in a new window. When a user clicks a calendar event I'd like to open in a new browser tab rather than navigate away from our site.
Mar 8, 2015 at 1:17 AM
Following up to my old message. The solution is to create an alternate view for the GoogleCalendar part and then add the following code to the script section:
                eventClick: function(event) {
                    if (event.url) {
                        return false;
resulting in:
        $(document).ready(function () {
                googleCalendarApiKey: '@calendar.GoogleCalendarApiKey',
                eventSources: @Html.Raw(JsonConvert.SerializeObject(gcReferences)),
                theme: @calendar.Theme.ToString().ToLower(),
                defaultView: '@ToCamelCase(calendar.DefaultView.ToString("G"))',
                header: {
                    left: '@calendar.HeaderLeft',
                    center: '@calendar.HeaderCenter',
                    right: '@calendar.HeaderRight'
                weekends: @calendar.Weekends.ToString().ToLower(),
                weekNumbers: @calendar.WeekNumbers.ToString().ToLower(),
                allDaySlot: @calendar.AllDaySlot.ToString().ToLower(),
                minTime: @calendar.MinTime,
                maxTime: @calendar.MaxTime,
                eventClick: function(event) {
                    if (event.url) {
                        return false;
Marked as answer by mdelange on 3/7/2015 at 5:32 PM