I am using fullcalendar plugin to schedule meetings and appointments.
I can retrieve all the events associated with Day/Month/Week. Now, I want to add double click event on empty cells (where there are no appointment scheduled).
I tried using dayRender, but it's not reliable because its only working for few cells not all. I tried eventRender, which works fine for all those cells who have events associated.
Right now I am using double click event of jQuery, as below:
$(CALENDAR.Calendar).undelegate("dblclick").delegate("td", "dblclick", function () {
if (!isEventsLoaded) {
common.notificationMessage("Please sit back we are loading calendar events.", 0);
return false;
}
alreadyClicked = true;
var hasEventAssigned = $(this).find("a").attr('href')
var isFutureMonth = $(this).hasClass("fc-other-month")
if (alreadyClicked && hasEventAssigned == undefined && !isFutureMonth) {
openEditSALPopUp();
alreadyClicked = false;
}
return false;
});
It works fine, it opens up the modal popup to add a new calendar or appointment, but i cannot find the date/time for which this appointment needs to be scheduled.
Please help me getting over this.