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

Function txt_replace

codebase/sources/dhtmlxscheduler.es.js:15609–15626  ·  view source on GitHub ↗
(tag, d, n, text)

Source from the content-addressed store, hash-verified

15607 return true;
15608 });
15609 function txt_replace(tag, d, n, text) {
15610 var txts = d.getElementsByTagName(tag);
15611 var txtt = n.getElementsByTagName(tag);
15612 for (var i = txtt.length - 1; i >= 0; i--) {
15613 var n = txtt[i];
15614 if (!text) {
15615 n.disabled = true;
15616 if (d.checked)
15617 n.checked = true;
15618 } else {
15619 var t2 = document.createElement("span");
15620 t2.className = "dhx_text_disabled";
15621 t2.innerHTML = text(txts[i]);
15622 n.parentNode.insertBefore(t2, n);
15623 n.parentNode.removeChild(n);
15624 }
15625 }
15626 }
15627 var old = scheduler2._fill_lightbox;
15628 scheduler2._fill_lightbox = function() {
15629 var lb = this.getLightbox();

Callers 1

readonlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected