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

Function A

codebase/dhtmlxscheduler.es.js:9753–9772  ·  view source on GitHub ↗
(C, $)

Source from the content-addressed store, hash-verified

9751 let b = e.config.lightbox_recurring, E = this.getEvent(v), S = E.recurring_event_id, T = this._is_virtual_event(v);
9752 T && (S = v.split("#")[0]);
9753 const A = function(C, $) {
9754 const H = e.getEvent(C), O = e.getEvent(S), R = e.getView();
9755 if (R && H[R.y_property] && (O[R.y_property] = H[R.y_property]), R && H[R.property] && (O[R.property] = H[R.property]), $ === "Occurrence")
9756 return e.showLightbox_rec(C);
9757 if ($ === "Following") {
9758 if (e._isExceptionFirstOccurrence(H) || e._isFirstOccurrence(H))
9759 return r(O, H), e.showLightbox_rec(S);
9760 {
9761 O._end_date = O.end_date;
9762 const P = H.original_start || H.start_date;
9763 return O._shorten_end_date = new Date(P.valueOf() - 1e3), O.end_date = new Date(H.start_date.valueOf() + 1e3 * O.duration), O._start_date = O.start_date, O.start_date = H.start_date, O._thisAndFollowing = H.id, E._beforeEventChangedFlag && (O._beforeEventChangedFlag = E._beforeEventChangedFlag, O._shorten_end_date = new Date(P.valueOf() - 1e3)), e.showLightbox_rec(S);
9764 }
9765 }
9766 if ($ === "AllEvents") {
9767 if (e._isExceptionFirstOccurrence(H) || e._isFirstOccurrence(H))
9768 return r(O, H), e.showLightbox_rec(S);
9769 const P = new Date(O.start_date);
9770 return O._end_date = O.end_date, O._start_date = P, O.start_date.setHours(H.start_date.getHours()), O.start_date.setMinutes(H.start_date.getMinutes()), O.start_date.setSeconds(H.start_date.getSeconds()), O.end_date = new Date(O.start_date.valueOf() + 1e3 * O.duration), O._thisAndFollowing = null, e.showLightbox_rec(S);
9771 }
9772 };
9773 if ((S || 1 * S == 0) && n(E))
9774 return A(v, "AllEvents");
9775 if (!S || S === "0" || !x.labels.confirm_recurring || b == "instance" || b == "series" && !T)

Callers 1

Calls 3

rFunction · 0.70
getEventMethod · 0.65
getViewMethod · 0.65

Tested by

no test coverage detected