I am attempting to perform one action when single clicking on an event in fullCalendar, and perform another action when double clicking on the same event, and am running into problems with the single click event firing on a dblClick.
I want to change the border color on a series of events on a single click, and open an edit dialog box on a double click.
I have tried this in the eventRender function like this but it hasnt worked. Also, leaving the click event out of eventRender and using the eventClick function for single click, it behaves the same way.
element.bind('dblclick', function(ev) {
editEvent(event,element,view);
alert('double click!');
});
element.bind('click', function(ev) {
var eventSeries=$('#calendar').fullCalendar('clientEvents', event.id);
$(eventSeries).each(function(){this.borderColor='red'});
$('#calendar').fullCalendar('updateEvent', eventSeries);
alert('single click!');
});
dblclick fires fine when there is nothing in eventClick or the click binding, but as soon as I have code in the click binding or eventClick, dblclick never fired. Does anyone know how I can handle both types of events?