如何在删除事件后刷新fullCalender [英] How to refresh fullCalender after delete event
本文介绍了如何在删除事件后刷新fullCalender的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以删除一个活动,但事件没有消失,只有在f5之后
我试试这样:
I can delete an event, but the event is not gone, only after f5
I try it like this:
eventClick: function (calEvent, jsEvent, view) {
$('#btnPopupDelete').click(function () {
var id = calEvent.id;
$('#calendar').fullCalendar('refetchEvents');
DeleteEvent(id)
$('#popupEventForm').hide();
});
但是删除两次后事件消失了。谢谢
but then after two times delete the event is gone. Thank you
推荐答案
(' #btnPopupDelete')。click(function(){
var id = calEvent.id;
('#btnPopupDelete').click(function () { var id = calEvent.id;
(' #calendar')。fullCalendar(' refetchEvents');
DeleteEvent(id)
('#calendar').fullCalendar('refetchEvents'); DeleteEvent(id)
(' #popupEventForm')。hide();
});
('#popupEventForm').hide(); });
但是经过两次删除后事件就消失了。谢谢
but then after two times delete the event is gone. Thank you
这篇关于如何在删除事件后刷新fullCalender的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文