MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / switchChannelStatus

Function switchChannelStatus

html/js/mapping-editor.js:691–727  ·  view source on GitHub ↗
(xepg)

Source from the content-addressed store, hash-verified

689
690
691function switchChannelStatus(xepg) {
692 var thisChannel = xEPG["epgMapping"][xepg];
693 var xXmltvFile = thisChannel["x-xmltv-file"];
694
695 if (xEPG["xmltvMap"].hasOwnProperty(xXmltvFile) == true) {
696 if (thisChannel["x-mapping"] != "-" && thisChannel["x-mapping"] != undefined) {
697 thisChannel["x-active"] = !thisChannel["x-active"];
698 var tr = document.getElementById(xepg);
699 switch (thisChannel["x-active"]) {
700 case true: tr.className = "activeEPG"; break;
701 case false: tr.className = "notActiveEPG"; break;
702 }
703 document.getElementById("logInfo").className = "notVisible";
704
705 } else {
706 var err = "XMLTV Channel is not selected"
707 alert(err)
708 /*
709 var newError = new Object();
710 newError["err"] = "Channel is not selected";
711 checkErr(newError);
712 */
713 }
714
715 } else {
716 var err = "XMLTV File is not selected"
717 alert(err)
718 /*
719 var newError = new Object();
720 newError["err"] = "XMLTV file is not selected";
721 checkErr(newError);
722 */
723 }
724
725 searchInMapping();
726
727}
728
729function createNewElement(newItem) {
730

Callers

nothing calls this directly

Calls 1

searchInMappingFunction · 0.70

Tested by

no test coverage detected