开发者

jQuery fullcalendar: Fadeout deleted Event

He开发者_如何学Goyhou,

I want to fadeOut the "eventbar" in the calendar I have deleted. What should I do?

 eventClick: function(calEvent, jsEvent, view) {
     // $(this).animate({ opacity: 0 }, 1000); <- ???
     $('#kal').fullCalendar('removeEvents', calEvent.id);
 }

Thanks for ur answers!


I don't know fullcalander but I do know a little jQuery. Could it be you want something like this:

 eventClick: function(calEvent, jsEvent, view) {
     $(this).animate({ opacity: 0 }, 1000, function() {
         $('#kal').fullCalendar('removeEvents', calEvent.id);
     });
 }

I don't think $(this) is right, I guess you need some sort of reference to the eventbar. (like a class or id)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜