[Plugin: Events Manager] add extra options to the fullcalendar options
-
Hi,
I am trying to add extra options to the full calendar options.
I added this code to my js file:
var localOptions = {
dayClick: function(date, allDay, jsEvent, view) {
if(view.name != ‘month’) {
alert(“test-dayclick”);
}
}
jQuery(document).bind(‘wpfc_fullcalendar_args’, localOptions, function(event) {
event.data.dayClick(date, allDay, jsEvent, view);
})
But there is an error in the console, date is not defined. Can you point me to please to the right direction to bind these extra options that I want to add to the to the document event wpfc_fullcalendar_args?Many thanks in advance!
- The topic ‘[Plugin: Events Manager] add extra options to the fullcalendar options’ is closed to new replies.