fullcalendar - 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))
}
});
解决方案
推荐阅读
- python - 向我的数组追加或插入随机元素
- c++ - 运行时错误:以下代码的运行时错误分段错误 (SIGSEGV)
- c# - Pulumi 本地工作区配置值,这些是否适用于 Azure 部署?
- python - 如何使用 environment.yaml 文件在 Python 中创建虚拟环境?
- amazon-s3 - 如何限制 S3 分段上传总大小
- amazon-s3 - 如何确定 s3 文件是否已使用服务器端加密进行加密
- javascript - Sql Server - 约束 - Sequelize - 仅当 B 列为空时才允许设置 A 列,反之亦然
- python - NotImplementedError:无法将符号张量转换为 numpy 数组
- python - 在路径列表中查找一个数字
- events - 使用 REDIS 进行即发即弃的消息模型