首页 > 解决方案 > Fullcalendar EvenDrop 没有日期“结束”

问题描述

你好,看看这个例子,当我放弃事件时,我没有结束日期,因此当我点击它时,我错过了这个日期,进入编辑表单

https://jsfiddle.net/max1974/msnyk1oL/1/

$('#external-events .fc-event').each(function() {

  // make the event draggable using jQuery UI
  $(this).draggable({
    zIndex: 999,
    revert: true, // will cause the event to go back to its
    revertDuration: 0 //  original position after the drag
  });

});


/* initialize the calendar
-----------------------------------------------------------------*/
$('#calendar').fullCalendar({
  header: {
    left: 'prev,next today',
    center: 'title',
    right: 'month,agendaWeek,agendaDay'
  },
  editable: true,
  droppable: true, // this allows things to be dropped onto the calendar
  drop: function() {
    $(this).remove();
  },
  eventReceive: function(event) {
    alert(JSON.stringify(event, null, 4));
  },
  eventClick: function (event) {    
    alert(JSON.stringify(event, null, 4))   
  }  
});

标签: fullcalendarfullcalendar-3

解决方案


推荐阅读