MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / handleOccurrence

Function handleOccurrence

codebase/sources/dhtmlxscheduler.js:18926–18946  ·  view source on GitHub ↗
(occurrence2)

Source from the content-addressed store, hash-verified

18924 tempEndDate = occurrence.end_date;
18925 }
18926 const handleOccurrence = function(occurrence2) {
18927 let tempEvent2 = { ...event2, ...scheduler2.getEvent("$dnd_recurring_placeholder") };
18928 if (tempEndDate && tempStartDate) {
18929 tempEvent2.start_date = tempStartDate;
18930 tempEvent2.end_date = tempEndDate;
18931 tempEvent2._beforeEventChangedFlag = occurrence2._beforeEventChangedFlag;
18932 tempEvent2._ocr = true;
18933 }
18934 if (!scheduler2.config.collision_limit || scheduler2.checkCollision(tempEvent2)) {
18935 for (const i in scheduler2._events) {
18936 let tev = scheduler2._events[i];
18937 if (i === "$dnd_recurring_placeholder") {
18938 continue;
18939 }
18940 if (tev.id == tempEvent2.id) {
18941 scheduler2._events[i] = { ...tempEvent2 };
18942 scheduler2.callEvent("onEventChanged", [scheduler2._events[i].id, scheduler2._events[i]]);
18943 }
18944 }
18945 }
18946 };
18947 const handleFollowing = function(occurrence2) {
18948 let initialOccurrence = scheduler2._lame_clone(occurrence2);
18949 if (tempEndDate && tempStartDate) {

Callers 1

recurringFunction · 0.70

Calls 3

getEventMethod · 0.65
checkCollisionMethod · 0.65
callEventMethod · 0.65

Tested by

no test coverage detected