added tvdb updates setting

This commit is contained in:
Luke Pulverenti 2013-07-25 16:59:28 -04:00
parent 6c4be34378
commit fcc6306168
2 changed files with 8 additions and 1 deletions

View File

@ -37,6 +37,11 @@
<label for="selectCountry">Country: </label> <label for="selectCountry">Country: </label>
<select name="selectCountry" id="selectCountry"></select> <select name="selectCountry" id="selectCountry"></select>
</li> </li>
<li>
<input type="checkbox" id="chkEnableTvdbUpdates" name="chkEnableTvdbUpdates" />
<label for="chkEnableTvdbUpdates">Enable tvdb updates</label>
<div class="fieldDescription">If enabled, tv series and episodes will be updated automatically as they are updated on the tvdb.com.</div>
</li>
<li> <li>
<button type="submit" data-theme="b" data-icon="ok"> <button type="submit" data-theme="b" data-icon="ok">
Save Save

View File

@ -38,11 +38,12 @@
return; return;
} }
$('#chkEnableInternetProviders', page).checked(config.EnableInternetProviders).checkboxradio("refresh");
$('#chkSaveLocal', page).checked(config.SaveLocalMeta).checkboxradio("refresh"); $('#chkSaveLocal', page).checked(config.SaveLocalMeta).checkboxradio("refresh");
$('#txtRefreshDays', page).val(config.MetadataRefreshDays); $('#txtRefreshDays', page).val(config.MetadataRefreshDays);
$('#selectLanguage', page).val(config.PreferredMetadataLanguage).selectmenu("refresh"); $('#selectLanguage', page).val(config.PreferredMetadataLanguage).selectmenu("refresh");
$('#selectCountry', page).val(config.MetadataCountryCode).selectmenu("refresh"); $('#selectCountry', page).val(config.MetadataCountryCode).selectmenu("refresh");
$('#chkEnableInternetProviders', page).checked(config.EnableInternetProviders).checkboxradio("refresh");
$('#chkEnableTvdbUpdates', page).checked(config.EnableTvDbUpdates).checkboxradio("refresh");
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
}, },
@ -86,6 +87,7 @@
ApiClient.getServerConfiguration().done(function (config) { ApiClient.getServerConfiguration().done(function (config) {
config.EnableTvDbUpdates = $('#chkEnableTvdbUpdates', form).checked();
config.EnableInternetProviders = $('#chkEnableInternetProviders', form).checked(); config.EnableInternetProviders = $('#chkEnableInternetProviders', form).checked();
config.SaveLocalMeta = $('#chkSaveLocal', form).checked(); config.SaveLocalMeta = $('#chkSaveLocal', form).checked();
config.MetadataRefreshDays = $('#txtRefreshDays', form).val(); config.MetadataRefreshDays = $('#txtRefreshDays', form).val();