Twitter bootstrap Fullcalendar和bootstrap-清除远程模式

Twitter bootstrap Fullcalendar和bootstrap-清除远程模式,twitter-bootstrap,modal-dialog,fullcalendar,Twitter Bootstrap,Modal Dialog,Fullcalendar,我正在使用fullcalendar显示事件。单击days/events(天数/事件)可显示各种表单,使我能够添加新事件 以下是这篇文章的基本片段: select: function(start, end, allDay) { // disply the modal form }, eventClick: function(event, element) { $('#popupTodoEditForm').modal({ remote: form-edit.php,

我正在使用fullcalendar显示事件。单击days/events(天数/事件)可显示各种表单,使我能够添加新事件

以下是这篇文章的基本片段:

select: function(start, end, allDay) {
   // disply the modal form
},
eventClick: function(event, element) {
   $('#popupTodoEditForm').modal({
      remote: form-edit.php,
      show: true
   });
}
如果我选择一个空日,我可以添加表单fine。如果单击现有事件,我可以很好地更新

问题是,在空日的后续单击中,会显示以前保存的新事件的数据

问题似乎是当模式关闭时,它没有清除远程表单的详细信息

有没有一种方法可以让我重新加载表单而不必在表单中保存以前的数据


谢谢

这应该可以做到:

$'body'。在'hidden.bs.modal','poputdoeditform',函数上{ $this.removeData'bs.modal'; };

在再次加载之前删除现有模式

$('#popupTodoEditForm').modal('destroy');

情态动词基本上只是隐藏的元素。在显示模式输入之前,不能清除单击事件上的模式输入字段吗?