add standalone EncodingOptions

This commit is contained in:
Luke Pulverenti 2014-12-21 14:40:37 -05:00
parent 1d501de6c4
commit cb560ec779

View File

@ -2,7 +2,7 @@
function loadPage(page, config) {
$('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugEncodingLogging).checkboxradio('refresh');
$('#chkEnableDebugEncodingLogging', page).checked(config.EnableDebugLogging).checkboxradio('refresh');
$('.radioEncodingQuality', page).each(function() {
@ -46,7 +46,7 @@
var page = this;
ApiClient.getServerConfiguration().done(function (config) {
ApiClient.getNamedConfiguration("encoding").done(function (config) {
loadPage(page, config);
@ -61,14 +61,14 @@
var form = this;
ApiClient.getServerConfiguration().done(function (config) {
ApiClient.getNamedConfiguration("encoding").done(function (config) {
config.EnableDebugEncodingLogging = $('#chkEnableDebugEncodingLogging', form).checked();
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val();
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
ApiClient.updateNamedConfiguration("encoding", config).done(Dashboard.processServerConfigurationUpdateResult);
});
// Disable default form submission