| Issue 231: | DblClick on event | |
| 4 people starred this issue and may be notified of changes. | Back to list |
Enhancement:
~2530
.dblclick(function(ev) {
if (!eventElement.hasClass('ui-draggable-dragging') &&
!eventElement.hasClass('ui-resizable-resizing')) {
return view.trigger('eventDblClick', this, event, ev);
}
})
.hover(
Dec 21, 2009
Project Member
#1
adamrs...@gmail.com
Dec 22, 2009
Hi adam, I've just copied eventClick code. Thank you very much for your work Adam. If you are in north italy a beer is just ready for you !!
Jan 19, 2010
haha nicola, thank you.
whenever possible i like to keep things out of the core of fullcalendar, and have
people do them through the api. the only reason i have
eventClick/eventMouseover/eventMouseout as part of the core is b/c they involve some
special cases, such as conflicting with jquery ui dragging & resizing, so i need to
do things like check for those classes.
i think the best way to attach event handlers like dblclick would be through
eventRender like so:
$('#calendar').fullCalendar({
eventRender: function(event, element) {
element.bind('dblclick', function() {
alert('double click!');
});
}
})
please let me know if you feel differently. thanks
Feb 6, 2010
(No comment was entered for this change.)
Status:
Done
Feb 6, 2010
Ok Adam, removed from my code. Thanks againg Nicola
May 6, 2010
Adam, just wanted to comment that your "eventRender" code above works like a charm. Thanks.
Aug 17, 2010
Hi everyone. The "element.bind('dblclick'" works like a charm on the eventRender. Does anyone know how to do thins but for the whole day cell? Something like dayRender: etc... ?
Thanks.
Aug 25, 2010
xjpmauricio, will hopefully get a "dayRender" in there at some point: https://code.google.com/p/fullcalendar/issues/detail?id=191
Jun 9, 2011
Thank you, Adam |
|
| ► Sign in to add a comment |