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

Function messageBox

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

Source from the content-addressed store, hash-verified

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