The onDayClick event has the following function definition:
- Code: Select all
/**
* @param {Date} date
* @param {JSEvent} event
* @param {CustomType<svy-fullcalendar.ViewType>} view
* @param {CustomType<svy-fullcalendar.ResourceType>} [resource]
* @properties={typeid:24,uuid:"1749BEE4-2734-4632-811E-B8817C74AEA6"}
*/
function onDayClick(date, event, view, resource) {
forms.el_dispatch_calendar_jobs_popup.setDate(date);
forms.el_dispatch_calendar_jobs_popup.show('Assign Job', 1100, 400);
// Set the vehicle lookup date back to today, so that later the scheduler doesn't try to use the
// date that was just clicked on the Calendar.
forms.el_vehicle_lookup.setVehicleLookupDate(new Date());
initCalendar(date, null); // runs after the popup exits
}
Unfortunately, the resource param is never given a value (debugger always says "undefined").