mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update schedulesdirect Suggested change
This commit is contained in:
parent
e3d8b14245
commit
36fae11a38
1 changed files with 8 additions and 10 deletions
|
@ -22,7 +22,7 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
|
|
||||||
page.querySelector(".chkAllTuners").checked = info.EnableAllTuners;
|
page.querySelector(".chkAllTuners").checked = info.EnableAllTuners;
|
||||||
|
|
||||||
if (page.querySelector(".chkAllTuners").checked) {
|
if (info.EnableAllTuners) {
|
||||||
page.querySelector(".selectTunersSection").classList.add("hide");
|
page.querySelector(".selectTunersSection").classList.add("hide");
|
||||||
} else {
|
} else {
|
||||||
page.querySelector(".selectTunersSection").classList.remove("hide");
|
page.querySelector(".selectTunersSection").classList.remove("hide");
|
||||||
|
@ -67,7 +67,7 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
return '<option value="' + c.value + '">' + c.name + "</option>";
|
return '<option value="' + c.value + '">' + c.name + "</option>";
|
||||||
}).join("")).val(info.Country || "");
|
}).join("")).val(info.Country || "");
|
||||||
$(page.querySelector(".txtZipCode")).trigger("change");
|
$(page.querySelector(".txtZipCode")).trigger("change");
|
||||||
}, function () {
|
}, function () { // ApiClient.getJSON() error handler
|
||||||
Dashboard.alert({
|
Dashboard.alert({
|
||||||
message: Globalize.translate("ErrorGettingTvLineups")
|
message: Globalize.translate("ErrorGettingTvLineups")
|
||||||
});
|
});
|
||||||
|
@ -88,8 +88,9 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
|
|
||||||
function hex(buffer) {
|
function hex(buffer) {
|
||||||
var hexCodes = [];
|
var hexCodes = [];
|
||||||
|
var view = new DataView(buffer);
|
||||||
|
|
||||||
for (var view = new DataView(buffer), i = 0; i < view.byteLength; i += 4) {
|
for (i = 0; i < view.byteLength; i += 4) {
|
||||||
var value = view.getUint32(i);
|
var value = view.getUint32(i);
|
||||||
var stringValue = value.toString(16);
|
var stringValue = value.toString(16);
|
||||||
var paddedValue = ("00000000" + stringValue).slice(-"00000000".length);
|
var paddedValue = ("00000000" + stringValue).slice(-"00000000".length);
|
||||||
|
@ -128,7 +129,7 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
providerId = result.Id;
|
providerId = result.Id;
|
||||||
reload();
|
reload();
|
||||||
}, function () {
|
}, function () {
|
||||||
Dashboard.alert({
|
Dashboard.alert({ // ApiClient.ajax() error handler
|
||||||
message: Globalize.translate("ErrorSavingTvProvider")
|
message: Globalize.translate("ErrorSavingTvProvider")
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -169,7 +170,7 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
}).then(function (result) {
|
}).then(function (result) {
|
||||||
loading.hide();
|
loading.hide();
|
||||||
|
|
||||||
if (false !== options.showConfirmation) {
|
if (options.showConfirmation) {
|
||||||
Dashboard.processServerConfigurationUpdateResult();
|
Dashboard.processServerConfigurationUpdateResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,13 +221,10 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
switch (providerId = providerId.toLowerCase()) {
|
switch (providerId = providerId.toLowerCase()) {
|
||||||
case "m3u":
|
case "m3u":
|
||||||
return "M3U Playlist";
|
return "M3U Playlist";
|
||||||
|
|
||||||
case "hdhomerun":
|
case "hdhomerun":
|
||||||
return "HDHomerun";
|
return "HDHomerun";
|
||||||
|
|
||||||
case "satip":
|
case "satip":
|
||||||
return "DVB";
|
return "DVB";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "Unknown";
|
return "Unknown";
|
||||||
}
|
}
|
||||||
|
@ -266,13 +264,13 @@ define(["jQuery", "loading", "emby-checkbox", "listViewStyle", "emby-input", "em
|
||||||
self.init = function () {
|
self.init = function () {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
if (false !== options.showCancelButton) {
|
if (options.showCancelButton) {
|
||||||
page.querySelector(".btnCancel").classList.remove("hide");
|
page.querySelector(".btnCancel").classList.remove("hide");
|
||||||
} else {
|
} else {
|
||||||
page.querySelector(".btnCancel").classList.add("hide");
|
page.querySelector(".btnCancel").classList.add("hide");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false !== options.showSubmitButton) {
|
if (options.showSubmitButton) {
|
||||||
page.querySelector(".btnSubmitListings").classList.remove("hide");
|
page.querySelector(".btnSubmitListings").classList.remove("hide");
|
||||||
} else {
|
} else {
|
||||||
page.querySelector(".btnSubmitListings").classList.add("hide");
|
page.querySelector(".btnSubmitListings").classList.add("hide");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue