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:
parent
0a3876a9b1
commit
6c602e1ad7
5 changed files with 72 additions and 39 deletions
|
@ -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();
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue