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

Function messageBox

codebase/sources/dhtmlxscheduler.es.js:8866–8880  ·  view source on GitHub ↗
(text, type, expire, id)

Source from the content-addressed store, hash-verified

8864 }, 1);
8865 };
8866 var messageBox = function(text, type, expire, id) {
8867 text = params.apply(this, arguments);
8868 text.type = text.type || "info";
8869 var subtype = text.type.split("-")[0];
8870 switch (subtype) {
8871 case "alert":
8872 return alertPopup(text);
8873 case "confirm":
8874 return confirmPopup(text);
8875 case "modalbox":
8876 return boxPopup(text);
8877 default:
8878 return info(text);
8879 }
8880 };
8881 messageBox.seed = (/* @__PURE__ */ new Date()).valueOf();
8882 messageBox.uid = utils.uid;
8883 messageBox.expire = 4e3;

Callers

nothing calls this directly

Calls 4

alertPopupFunction · 0.70
confirmPopupFunction · 0.70
boxPopupFunction · 0.70
infoFunction · 0.70

Tested by

no test coverage detected