1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update checkboxes

This commit is contained in:
Luke Pulverenti 2016-02-09 12:19:55 -05:00
parent ca37d6a03d
commit b90c1fc868
3 changed files with 11 additions and 13 deletions

View file

@ -4,7 +4,7 @@
<title>${TitleDlna}</title> <title>${TitleDlna}</title>
</head> </head>
<body> <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 data-role="content">
<div class="content-primary"> <div class="content-primary">
@ -19,14 +19,12 @@
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li> <li>
<label for="chkEnablePlayTo">${LabelEnableDlnaPlayTo}</label> <paper-checkbox type="checkbox" id="chkEnablePlayTo">${LabelEnableDlnaPlayTo}</paper-checkbox>
<input type="checkbox" id="chkEnablePlayTo" data-mini="true" /> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaPlayToHelp}</div>
<div class="fieldDescription">${LabelEnableDlnaPlayToHelp}</div>
</li> </li>
<li> <li>
<label for="chkEnableDlnaDebugLogging">${LabelEnableDlnaDebugLogging}</label> <paper-checkbox type="checkbox" id="chkEnableDlnaDebugLogging">${LabelEnableDlnaDebugLogging}</paper-checkbox>
<input type="checkbox" id="chkEnableDlnaDebugLogging" data-mini="true" /> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaDebugLoggingHelp}</div>
<div class="fieldDescription">${LabelEnableDlnaDebugLoggingHelp}</div>
</li> </li>
<li> <li>
<paper-input type="number" id="txtClientDiscoveryInterval" min="1" max="300" label="${LabelEnableDlnaClientDiscoveryInterval}"></paper-input> <paper-input type="number" id="txtClientDiscoveryInterval" min="1" max="300" label="${LabelEnableDlnaClientDiscoveryInterval}"></paper-input>

View file

@ -2,8 +2,9 @@
function loadPage(page, config) { function loadPage(page, config) {
$('#chkEnablePlayTo', page).checked(config.EnablePlayTo).checkboxradio("refresh"); page.querySelector('#chkEnablePlayTo').checked = config.EnablePlayTo;
$('#chkEnableDlnaDebugLogging', page).checked(config.EnableDebugLogging).checkboxradio("refresh"); page.querySelector('#chkEnableDlnaDebugLogging').checked = config.EnableDebugLogging;
$('#txtClientDiscoveryInterval', page).val(config.ClientDiscoveryIntervalSeconds); $('#txtClientDiscoveryInterval', page).val(config.ClientDiscoveryIntervalSeconds);
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
@ -17,8 +18,9 @@
ApiClient.getNamedConfiguration("dlna").then(function (config) { ApiClient.getNamedConfiguration("dlna").then(function (config) {
config.EnablePlayTo = $('#chkEnablePlayTo', form).checked(); config.EnablePlayTo = form.querySelector('#chkEnablePlayTo').checked;
config.EnableDebugLogging = $('#chkEnableDlnaDebugLogging', form).checked(); config.EnableDebugLogging = form.querySelector('#chkEnableDlnaDebugLogging').checked;
config.ClientDiscoveryIntervalSeconds = $('#txtClientDiscoveryInterval', form).val(); config.ClientDiscoveryIntervalSeconds = $('#txtClientDiscoveryInterval', form).val();
ApiClient.updateNamedConfiguration("dlna", config).then(Dashboard.processServerConfigurationUpdateResult); ApiClient.updateNamedConfiguration("dlna", config).then(Dashboard.processServerConfigurationUpdateResult);

View file

@ -2,7 +2,6 @@
function loadPage(page, config) { function loadPage(page, config) {
$('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugLogging).checkboxradio('refresh');
page.querySelector('#chkEnableThrottle').checked = config.EnableThrottling; page.querySelector('#chkEnableThrottle').checked = config.EnableThrottling;
$('.radioEncodingQuality', page).each(function () { $('.radioEncodingQuality', page).each(function () {
@ -28,7 +27,6 @@
ApiClient.getNamedConfiguration("encoding").then(function (config) { ApiClient.getNamedConfiguration("encoding").then(function (config) {
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
config.EncodingQuality = $('.radioEncodingQuality:checked', form).val(); config.EncodingQuality = $('.radioEncodingQuality:checked', form).val();
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val(); config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val(); config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();