My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1167: undo removeEvents
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Jan 2012


Sign in to add a comment
 
Reported by Deac.Ka...@gmail.com, Nov 3, 2011
Im using your plugin and love it.  

I am however having a problem with adding events back to the calendar after they have been removed with the removeEvent method. 

I have a JSON object containing all of the calendar events a user should see.  A list is populated with checkboxes to give the user the ability to show and hide events by category via the following code.


var value = $(this).val();
$('#calendar').fullCalendar('removeEvents', function(event) {
   	return event.subscription == value;
});



I would like to show/render the events that the user chose to hide when they re-check the appropriate box without reloading the whole page and JSON source but keep other events that are unchecked, removed.

is there a way to do this by using the same data I used to remove the events?  
ie.
return event.subscription == value;


Screen Shot 2011-11-03 at 3.49.45 PM.png
425 KB   View   Download
Nov 7, 2011
#1 Deac.Ka...@gmail.com
Any Ideas out there?
Jan 10, 2012
Project Member #2 adamrs...@gmail.com
currently, the best solution is to separate events into array "event sources", and then dynamically add or remove them with addEventSource and removeEventSource
Status: Done
Sign in to add a comment

Powered by Google Project Hosting