(epgMapId, xmlTvFileSelect)
| 1940 | return; |
| 1941 | } |
| 1942 | function setXmltvChannel(epgMapId, xmlTvFileSelect) { |
| 1943 | const xmlTv = new XMLTVFile(); |
| 1944 | const newXmlTvFile = xmlTvFileSelect.value; |
| 1945 | // Remove old XMLTV ID selection box |
| 1946 | const xmlTvIdPickerParent = document.getElementById('xmltv-id-picker-container').parentElement; |
| 1947 | xmlTvIdPickerParent.innerHTML = ''; |
| 1948 | // Create new XMLTV ID selection box |
| 1949 | const tvgId = SERVER['xepg']['epgMapping'][epgMapId]['tvg-id']; |
| 1950 | const [xmlTvIdContainer, xmlTvIdInput, xmlTvIdDatalist] = xmlTv.newXmlTvIdPicker(newXmlTvFile, tvgId); |
| 1951 | xmlTvIdContainer.setAttribute('id', 'xmltv-id-picker-container'); |
| 1952 | xmlTvIdInput.setAttribute('list', 'xmltv-id-picker-datalist'); |
| 1953 | xmlTvIdInput.setAttribute('name', 'x-mapping'); // Should stay x-mapping as it will be used in donePopupData to make a server request |
| 1954 | xmlTvIdInput.setAttribute('id', 'xmltv-id-picker-input'); |
| 1955 | xmlTvIdInput.setAttribute('onchange', `javascript: this.className = 'changed'; checkXmltvChannel('${epgMapId}', this.value, '${newXmlTvFile}');`); |
| 1956 | xmlTvIdInput.classList.add('changed'); |
| 1957 | xmlTvIdDatalist.setAttribute('id', 'xmltv-id-picker-datalist'); |
| 1958 | // Add new XMLTV ID selection box to it's parent |
| 1959 | xmlTvIdPickerParent.appendChild(xmlTvIdContainer); |
| 1960 | checkXmltvChannel(epgMapId, xmlTvIdInput.value, newXmlTvFile); |
| 1961 | } |
| 1962 | function checkPPV(title, element) { |
| 1963 | var value = element.value; |
| 1964 | console.log("DUMMY TYPE: " + value); |
nothing calls this directly
no test coverage detected