(id, element, xmlFile)
| 1985 | } |
| 1986 | } |
| 1987 | function checkXmltvChannel(id, element, xmlFile) { |
| 1988 | var value = element.value; |
| 1989 | var bool; |
| 1990 | var checkbox = document.getElementById('active'); |
| 1991 | var channel = SERVER["xepg"]["epgMapping"][id]; |
| 1992 | var updateLogo; |
| 1993 | if (value == "-") { |
| 1994 | bool = false; |
| 1995 | } |
| 1996 | else { |
| 1997 | bool = true; |
| 1998 | } |
| 1999 | checkbox.checked = bool; |
| 2000 | checkbox.className = "changed"; |
| 2001 | console.log(xmlFile); |
| 2002 | // Kanallogo aktualisieren |
| 2003 | /* |
| 2004 | updateLogo = (document.getElementById("update-icon") as HTMLInputElement).checked |
| 2005 | console.log(updateLogo); |
| 2006 | */ |
| 2007 | if (xmlFile != "Threadfin Dummy" && bool == true) { |
| 2008 | //(document.getElementById("update-icon") as HTMLInputElement).checked = true; |
| 2009 | //(document.getElementById("update-icon") as HTMLInputElement).className = "changed"; |
| 2010 | console.log("ID", id); |
| 2011 | changeChannelLogo(id); |
| 2012 | return; |
| 2013 | } |
| 2014 | if (xmlFile == "Threadfin Dummy") { |
| 2015 | document.getElementById("update-icon").checked = false; |
| 2016 | document.getElementById("update-icon").className = "changed"; |
| 2017 | } |
| 2018 | return; |
| 2019 | } |
| 2020 | function changeChannelLogo(epgMapId) { |
| 2021 | const channel = SERVER['xepg']['epgMapping'][epgMapId]; |
| 2022 | const xmlTvFileSelect = document.getElementById('popup-xmltv'); |
no test coverage detected