robmonie / jquery-week-calendar

Now actively maintained in the following fork - https://github.com/themouette/jquery-week-calendar
388 stars 388 forks source link

Delete multiday events #46

Open ffernandesinc opened 12 years ago

ffernandesinc commented 12 years ago

I find a bug, when i try to delete a multiday event, plugin dont erase the other elements from calendar with that ID deleted.

So i did something like:

var events = $calendar.weekCalendar("serializeEvents"); // get all events

for( var a=0; a < events.length; a++ ){ // covers all events if( events a ].id == event.id ){ // if the ID of event is the same, i looking, delete again $calendar.weekCalendar("removeEvent", event.id); } }

And btw, awesome plugin, ty!