My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 231: DblClick on event
4 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Feb 2010


Sign in to add a comment
 
Reported by nicola.b...@gmail.com, Dec 7, 2009
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
thanks nicola. i have a question first.. are you doing the hasClass if statements
because you were mimicking the eventClick code above it, or did you actually observe
a scenario in which it interfered with draggables/resizables? thanks
Dec 22, 2009
#2 nicola.b...@gmail.com
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
Project Member #3 adamrs...@gmail.com
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
Project Member #4 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Feb 6, 2010
#5 nicola.b...@gmail.com
Ok Adam, removed from my code.
Thanks againg

Nicola

May 6, 2010
#6 sunniyeow
Adam, just wanted to comment that your "eventRender" code above works like a charm.
Thanks.
Aug 17, 2010
#7 xjpmauri...@gmail.com
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
Project Member #8 adamrs...@gmail.com
xjpmauricio,
will hopefully get a "dayRender" in there at some point:
https://code.google.com/p/fullcalendar/issues/detail?id=191
Jun 9, 2011
#9 acebom...@gmail.com
Thank you, Adam
Sign in to add a comment

Powered by Google Project Hosting