Add original group-title to mapping editor
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
74
src/webUI.go
74
src/webUI.go
File diff suppressed because one or more lines are too long
@@ -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)
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user