| 2018 | return; |
| 2019 | } |
| 2020 | function changeChannelLogo(epgMapId) { |
| 2021 | const channel = SERVER['xepg']['epgMapping'][epgMapId]; |
| 2022 | const xmlTvFileSelect = document.getElementById('popup-xmltv'); |
| 2023 | const xmlTvFile = xmlTvFileSelect.options[xmlTvFileSelect.selectedIndex].value; |
| 2024 | const xmlTvIdInput = document.getElementById('xmltv-id-picker-input'); |
| 2025 | const newXmlTvId = xmlTvIdInput.value; |
| 2026 | const updateLogo = !BULK_EDIT || document.getElementById('update-icon').checked; |
| 2027 | let logo; |
| 2028 | if (updateLogo == true && xmlTvFile != 'Threadfin Dummy') { |
| 2029 | if (SERVER['xepg']['xmltvMap'][xmlTvFile].hasOwnProperty(newXmlTvId)) { |
| 2030 | logo = SERVER['xepg']['xmltvMap'][xmlTvFile][newXmlTvId]['icon']; |
| 2031 | } |
| 2032 | else { |
| 2033 | logo = channel['tvg-logo']; |
| 2034 | } |
| 2035 | } |
| 2036 | } |
| 2037 | function savePopupData(dataType, id, remove, option) { |
| 2038 | if (dataType == "mapping") { |
| 2039 | var data = new Object(); |