Add original group-title to mapping editor

This commit is contained in:
marmei
2019-08-17 08:57:06 +02:00
parent 8a4fb8ba30
commit f9d1a45bbd
4 changed files with 45 additions and 37 deletions

View File

@@ -1288,6 +1288,9 @@ function openPopUp(dataType, element) {
var input = content.createInput("text", dbKey, data[dbKey]); var input = content.createInput("text", dbKey, data[dbKey]);
input.setAttribute("onchange", "javascript: this.className = 'changed'"); input.setAttribute("onchange", "javascript: this.className = 'changed'");
content.appendRow("{{.mapping.m3uGroupTitle.title}}", input); content.appendRow("{{.mapping.m3uGroupTitle.title}}", input);
if (data["group-title"] != undefined) {
content.description(data["group-title"]);
}
// XMLTV Datei // XMLTV Datei
var dbKey = "x-xmltv-file"; var dbKey = "x-xmltv-file";
var xmlFile = data[dbKey]; var xmlFile = data[dbKey];

File diff suppressed because one or more lines are too long

View File

@@ -205,6 +205,7 @@ func xTeVe(w http.ResponseWriter, r *http.Request) {
// XMLTV Datei // XMLTV Datei
if strings.Contains(path, "xmltv/") { if strings.Contains(path, "xmltv/") {
w.Header().Set("Content-Type", "application/xml")
requestType = "xml" requestType = "xml"
file = System.Folder.Data + getFilenameFromPath(path) file = System.Folder.Data + getFilenameFromPath(path)

View File

@@ -1572,6 +1572,10 @@ function openPopUp(dataType, element) {
input.setAttribute("onchange", "javascript: this.className = 'changed'") input.setAttribute("onchange", "javascript: this.className = 'changed'")
content.appendRow("{{.mapping.m3uGroupTitle.title}}", input) content.appendRow("{{.mapping.m3uGroupTitle.title}}", input)
if (data["group-title"] != undefined) {
content.description(data["group-title"])
}
// XMLTV Datei // XMLTV Datei
var dbKey:string = "x-xmltv-file" var dbKey:string = "x-xmltv-file"
var xmlFile = data[dbKey] var xmlFile = data[dbKey]