I configured my scheduler with scheduler.config.max_month_events = 5 and I have an onEmptyClick event. When I click on a link in the scheduler that says “view more (6 events)” the onEmptyClick event fires. Is there a way to determine that the click event fired from the link?
I need to ignore the check for scheduling a day prior to today when a user clicks on a link to display the day view.
scheduler
.attachEvent(
‘onEmptyClick’,
function(date, e) {
todaysDate = new Date;
if (date < todaysDate) {
message = “An event cannot be reserved on a day prior to today.”;
alert(message);
}
});