';
}
@@ -528,7 +540,6 @@ document.addEventListener('DOMContentLoaded', function () {
title += 'geändert am ' + info.event.extendedProps['mtime'] + '
';
title += 'geändert von ' + info.event.extendedProps['mname'] + '
';
}
- // console.log(info);
if ($('.fc-button-active').hasClass('fc-timeGridWeek-button') || $('.fc-button-active').hasClass('fc-timeGridDay-button')) {
if (info.event.extendedProps['attachment']) {
info.el.querySelector(".fc-event-title").insertAdjacentHTML("afterend", "
");
@@ -537,6 +548,9 @@ document.addEventListener('DOMContentLoaded', function () {
info.el.querySelector(".fc-event-title").insertAdjacentHTML("afterend", "
");
}
+ if (info.event.extendedProps['rruleflag']) {
+ info.el.querySelector(".fc-event-title").insertAdjacentHTML("afterend", "
");
+ }
}
var tooltip = new Tooltip(info.el, {
@@ -714,6 +728,14 @@ if (typeof (EventSource) !== 'undefined') {
var cevent = calendar.getEventById(event.cal_events_id);
var rights = false;
var movable = false;
+ var rrule = null;
+ var duration = null;
+ var rruleflag = false;
+ if (event.rrule) {
+ rrule = event.rrule;
+ duration = event.duration;
+ rruleflag = true;
+ }
if (event.calendar_id in calendarRights) {
if (calendarRights[event.calendar_id] == 'all') {
rights = true;
@@ -746,6 +768,9 @@ if (typeof (EventSource) !== 'undefined') {
attachment: event.attachment,
attachments: event.attachments,
editable: movable,
+ rruleflag: rruleflag,
+ rrule: rrule,
+ duration: duration,
resourceId: event.calendar_id,
calendar_name: event.calendar_name,
clickable: rights,
@@ -1718,6 +1743,9 @@ Xinon GMbH`;
var rights = false;
var movable = false;
var resourceCounter = 0;
+ var rrule = null;
+ var duration = null;
+ var rruleflag = false;
$.each($('.calendar-check'), function (index, value) {
if ($(this).prop('checked')) {
rights = true;
@@ -1734,8 +1762,16 @@ Xinon GMbH`;
$.each(json.data, function (index, value) {
+ rrule = null;
+ duration = null;
+ rruleflag = false;
category = value.ccategory.ccategory;
+ if (value.rrule.rrule) {
+ rrule = value.rrule.rrule;
+ duration = value.duration.duration;
+ rruleflag = true;
+ }
if (value.calendar_id.calendar_id in calendarRights) {
if (calendarRights[value.calendar_id.calendar_id] == 'all') {
rights = true;
@@ -1762,6 +1798,9 @@ Xinon GMbH`;
textColor: value.txtColor.txtColor,
backgroundColor: value.bgColor.bgColor,
editable: movable,
+ rruleflag: rruleflag,
+ rrule: rrule,
+ duration: duration,
resourceId: value.calendar_id.calendar_id,
calendar_name: value.calendar_name.calendar_name,
clickable: rights,
@@ -1780,6 +1819,9 @@ Xinon GMbH`;
description: category,
color: 'red',
editable: false,
+ rruleflag: rruleflag,
+ rrule: rrule,
+ duration: duration,
calendar_id: value.calendar_id,
event_type: value.event_type.event_type,
classNames: ['cal-class-group-' + value.calendar_id.calendar_id, 'cal-class-id-' + value.id.id],