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

Function handleAllEvents

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

Source from the content-addressed store, hash-verified

18998 }
18999 };
19000 const handleAllEvents = function(occurrence2) {
19001 let initialOccurrence = scheduler2._lame_clone(occurrence2);
19002 if (scheduler2._isExceptionFirstOccurrence(initialOccurrence)) {
19003 deleteExceptionFromStorage(initialOccurrence);
19004 }
19005 if (tempEndDate && tempStartDate) {
19006 tempEvent.start_date.setHours(tempStartDate.getHours());
19007 tempEvent.start_date.setMinutes(tempStartDate.getMinutes());
19008 tempEvent.start_date.setSeconds(tempStartDate.getSeconds());
19009 tempEvent.duration = (+tempEndDate - +tempStartDate) / 1e3;
19010 }
19011 tempEvent._beforeEventChangedFlag = occurrence2._beforeEventChangedFlag;
19012 tempEvent._thisAndFollowing = null;
19013 if (!scheduler2.config.collision_limit || scheduler2.checkCollision(tempEvent)) {
19014 for (const i in scheduler2._events) {
19015 let tev = scheduler2._events[i];
19016 if (tev.id == tempEvent.id) {
19017 scheduler2._events[i] = { ...tempEvent };
19018 scheduler2.callEvent("onEventChanged", [scheduler2._events[i].id, scheduler2._events[i]]);
19019 }
19020 }
19021 }
19022 };
19023 if (type === "ask") {
19024 buttons = ["occurrence", "following", "series"];
19025 } else {

Callers 1

recurringFunction · 0.70

Calls 3

checkCollisionMethod · 0.65
callEventMethod · 0.65

Tested by

no test coverage detected