Monday, June 3, 2024
177
rated 0 times [  179] [ 2]  / answers: 1 / hits: 29099  / 13 Years ago, tue, october 18, 2011, 12:00:00

I am using FullCalendar library to load events in my calendar from Google Calendars.
Unfortunately after events have been added to the calendar, they are clickable. When you click on the event you are automatically redirected to the Google Calendars page to view that specific event, or if you have enaught access rights - to directly edit it.
While this is very useful for event management, I cannot imagine why a site visitor would like to be redirected to an external page every time he clicks on event in a calendar.



Is there a way to disable open on click in the FullCalendar, overwriting link opening to an empty javascript function call could also be an option.


More From » fullcalendar

 Answers
142

Might be worth trying your own event renderer in the fullcalendar options:



{ eventRender:function (event, element)}  


To do this, you will need to write all of the rendering code yourself - can start with the original implementation and tweak as needed.

Have not tried this wih a google calendar implementation, but have used it with custom json to turn on or off href as needed.



Alternatively, you could:

Hack the gcal.js file to make it not set the href property on the event objects.

Or

Intercept the event data before rendering, and remove the href property.


[#89550] Monday, October 17, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
briannar

Total Points: 354
Total Questions: 103
Total Answers: 101

Location: Japan
Member since Sat, Jun 6, 2020
4 Years ago
;