mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update checkboxes
This commit is contained in:
parent
ca37d6a03d
commit
b90c1fc868
3 changed files with 11 additions and 13 deletions
|
@ -4,7 +4,7 @@
|
|||
<title>${TitleDlna}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="dlnaSettingsPage" data-role="page" class="page type-interior dlnaPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Play%20to" data-require="scripts/dlnasettings,paper-input">
|
||||
<div id="dlnaSettingsPage" data-role="page" class="page type-interior dlnaPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Play%20to" data-require="scripts/dlnasettings,paper-input,paper-checkbox">
|
||||
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
|
@ -19,14 +19,12 @@
|
|||
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li>
|
||||
<label for="chkEnablePlayTo">${LabelEnableDlnaPlayTo}</label>
|
||||
<input type="checkbox" id="chkEnablePlayTo" data-mini="true" />
|
||||
<div class="fieldDescription">${LabelEnableDlnaPlayToHelp}</div>
|
||||
<paper-checkbox type="checkbox" id="chkEnablePlayTo">${LabelEnableDlnaPlayTo}</paper-checkbox>
|
||||
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaPlayToHelp}</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="chkEnableDlnaDebugLogging">${LabelEnableDlnaDebugLogging}</label>
|
||||
<input type="checkbox" id="chkEnableDlnaDebugLogging" data-mini="true" />
|
||||
<div class="fieldDescription">${LabelEnableDlnaDebugLoggingHelp}</div>
|
||||
<paper-checkbox type="checkbox" id="chkEnableDlnaDebugLogging">${LabelEnableDlnaDebugLogging}</paper-checkbox>
|
||||
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaDebugLoggingHelp}</div>
|
||||
</li>
|
||||
<li>
|
||||
<paper-input type="number" id="txtClientDiscoveryInterval" min="1" max="300" label="${LabelEnableDlnaClientDiscoveryInterval}"></paper-input>
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
|
||||
function loadPage(page, config) {
|
||||
|
||||
$('#chkEnablePlayTo', page).checked(config.EnablePlayTo).checkboxradio("refresh");
|
||||
$('#chkEnableDlnaDebugLogging', page).checked(config.EnableDebugLogging).checkboxradio("refresh");
|
||||
page.querySelector('#chkEnablePlayTo').checked = config.EnablePlayTo;
|
||||
page.querySelector('#chkEnableDlnaDebugLogging').checked = config.EnableDebugLogging;
|
||||
|
||||
$('#txtClientDiscoveryInterval', page).val(config.ClientDiscoveryIntervalSeconds);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
@ -17,8 +18,9 @@
|
|||
|
||||
ApiClient.getNamedConfiguration("dlna").then(function (config) {
|
||||
|
||||
config.EnablePlayTo = $('#chkEnablePlayTo', form).checked();
|
||||
config.EnableDebugLogging = $('#chkEnableDlnaDebugLogging', form).checked();
|
||||
config.EnablePlayTo = form.querySelector('#chkEnablePlayTo').checked;
|
||||
config.EnableDebugLogging = form.querySelector('#chkEnableDlnaDebugLogging').checked;
|
||||
|
||||
config.ClientDiscoveryIntervalSeconds = $('#txtClientDiscoveryInterval', form).val();
|
||||
|
||||
ApiClient.updateNamedConfiguration("dlna", config).then(Dashboard.processServerConfigurationUpdateResult);
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
function loadPage(page, config) {
|
||||
|
||||
$('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugLogging).checkboxradio('refresh');
|
||||
page.querySelector('#chkEnableThrottle').checked = config.EnableThrottling;
|
||||
|
||||
$('.radioEncodingQuality', page).each(function () {
|
||||
|
@ -28,7 +27,6 @@
|
|||
|
||||
ApiClient.getNamedConfiguration("encoding").then(function (config) {
|
||||
|
||||
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
||||
config.EncodingQuality = $('.radioEncodingQuality:checked', form).val();
|
||||
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
|
||||
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue