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

update wizard function of enable/disable local metadata saving

This commit is contained in:
Luke Pulverenti 2014-02-09 18:08:01 -05:00
parent 76d7223294
commit a43da6cd63
4 changed files with 22 additions and 10 deletions

View file

@ -4,19 +4,27 @@
Dashboard.showLoadingMsg();
// After saving chapter task, now save server config
ApiClient.getServerConfiguration().done(function (config) {
$.ajax({
type: "POST",
url: ApiClient.getUrl("System/Configuration/SaveLocalMetadata", { Enabled: $('#chkSaveLocalMetadata', page).checked() })
}).done(function() {
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
config.PreferredMetadataLanguage = $('#selectLanguage', page).val();
config.MetadataCountryCode = $('#selectCountry', page).val();
// After saving chapter task, now save server config
ApiClient.getServerConfiguration().done(function (config) {
ApiClient.updateServerConfiguration(config).done(function (result) {
config.PreferredMetadataLanguage = $('#selectLanguage', page).val();
config.MetadataCountryCode = $('#selectCountry', page).val();
navigateToNextPage();
ApiClient.updateServerConfiguration(config).done(function (result) {
navigateToNextPage();
});
});
});
}