我尝试使用完整日历(PHP,mysql)创建一个具有多个用户的事件日历。是否可以只允许添加1小时的活动? 例如。用户A只能添加1小时的活动。用户B只有2小时的活动?
问候
答案 0 :(得分:1)
添加事件时只需检查持续时间。
drop: function(date, allDay, jsEvent, ui) {
// retrieve the dropped element's stored Event Object
var originalEventObject = $(this).data('eventObject');
// we need to copy it, so that multiple events don't have a reference to the same object
var copiedEventObject = $.extend({}, originalEventObject);
// this will provide you duration just compare it with your limit and process accordingly.
copiedEventObject.duration
},//drop function ends