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

add back global metadata settings

This commit is contained in:
Luke Pulverenti 2014-02-26 22:57:37 -05:00
parent b066cb5d7a
commit 0bd2b8b590
3 changed files with 15 additions and 17 deletions

View file

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