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

added modular configuration

This commit is contained in:
Luke Pulverenti 2014-06-29 13:35:05 -04:00
parent 0a3876a9b1
commit 6c602e1ad7
5 changed files with 72 additions and 39 deletions

View file

@ -14,14 +14,20 @@
// After saving chapter task, now save server config
ApiClient.getServerConfiguration().done(function (config) {
config.ChapterOptions.EnableMovieChapterImageExtraction = $('#chkMovies', page).checked();
config.EnableUPnP = $('#chkEnableUpnp', page).checked();
ApiClient.updateServerConfiguration(config).done(function (result) {
navigateToNextPage();
ApiClient.getNamedConfiguration("chapters").done(function (chapterConfig) {
chapterConfig.EnableMovieChapterImageExtraction = $('#chkMovies', page).checked();
ApiClient.updateNamedConfiguration("chapters", chapterConfig).done(function () {
navigateToNextPage();
});
});
});
});
});