MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / saveCategory

Function saveCategory

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

Source from the content-addressed store, hash-verified

988}
989
990function saveCategory(xepg) {
991 var key = "x-category";
992 var value = document.getElementById("x-category").lastChild.value;
993
994 if (bulk == false) {
995 var thisChannel = xEPG["epgMapping"][xepg];
996 thisChannel[key] = value
997 document.getElementById(xepg).childNodes[3].lastChild.className = value
998 mappingDetail(xepg);
999 searchInMapping();
1000 }
1001
1002 if (bulk == true) {
1003 saveBulk(key, value);
1004 mappingDetail(xepg);
1005 return
1006 }
1007
1008}
1009
1010function arrangeTable(elm) {
1011 var tr = elm.parentElement.parentElement;

Callers

nothing calls this directly

Calls 3

mappingDetailFunction · 0.85
saveBulkFunction · 0.85
searchInMappingFunction · 0.70

Tested by

no test coverage detected