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

Function txt_replace

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

Source from the content-addressed store, hash-verified

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

Callers 1

readonlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected