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

Function Lt

codebase/dhtmlxscheduler.es.js:785–807  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

783 } };
784}
785function Lt(e) {
786 (function(i) {
787 const t = {};
788 i.attachEvent("onConfirmedBeforeEventDelete", function(n) {
789 return t[n] = !0, !0;
790 }), i.attachEvent("onEventDeleted", function(n, s) {
791 if (!t[n])
792 return;
793 delete t[n];
794 let a = i.copy(s);
795 i.config.undo_deleted && !i.getState().new_event && i.message({ text: `<div class="dhx_info_message">
796 <span class="undo_popup_text">Event deleted</span>
797 <button class="undo_button" data-deleted-event-id="${s.id}">Undo</button>
798 </div>`, expire: 1e4, type: "popup_after_delete", callback: function(o) {
799 o.target.closest(`[data-deleted-event-id="${s.id}"]`) && (a.rrule && a.duration && (a.end_date = new Date(a.start_date.valueOf() + 1e3 * a.duration), i.addEvent(a)), i.addEvent(a), i.render());
800 } });
801 });
802 })(e), Mt(e), Nt(e), function(i) {
803 i.batchUpdate = Tt(i);
804 }(e), function(i) {
805 i.ext || (i.ext = {}), i.ext.liveUpdates = { RemoteEvents: Ct, remoteUpdates: Ot(i) };
806 }(e);
807}
808var $t = Date.now();
809function Te(e) {
810 return !(!e || typeof e != "object") && !!(e.getFullYear && e.getMonth && e.getDate);

Callers 1

eaFunction · 0.70

Calls 10

MtFunction · 0.70
NtFunction · 0.70
TtFunction · 0.70
OtFunction · 0.70
attachEventMethod · 0.65
copyMethod · 0.65
getStateMethod · 0.65
messageMethod · 0.65
addEventMethod · 0.65
renderMethod · 0.65

Tested by

no test coverage detected