My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 247: removing events dynamically
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Dec 2009


Sign in to add a comment
 
Reported by spiro.st...@gmail.com, Dec 16, 2009
Hi there , 
I set up full calendar to run multiple calendars all with their own css but
have problems when trying to set a display on or off. Thing is i need to
tell the removeEvents function which css to turn off. I have tried this : 

$('#calendar').fullCalendar('removeEvents', function(calEvent,calendarid) { 
	return calEvent.className[0] == 'Calendar-' + calendarid); 
	});

But cannot get the calendarid value referenced within the callback. Is
there anyway I can do this or is there another way I can get the result. 

Cheers, 
Spiro 


Dec 17, 2009
#1 spiro.st...@gmail.com
Hi there, 
I just added a variable to window namespace 
 window.$my =
		{
			calendarField 	:	$('#calendarid'),
		};
		
And then it can be accessed from anywhere eg.  $my.calendarField .  

Dec 19, 2009
Project Member #2 adamrs...@gmail.com
the removeEvents callback is only given one argument, just the calEvent. check for
calEvent.id to get the id.

hope this helps,
adam
Status: Done
Sign in to add a comment

Powered by Google Project Hosting