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:
parent
76d7223294
commit
a43da6cd63
4 changed files with 22 additions and 10 deletions
|
@ -762,7 +762,7 @@ a.itemTag:hover {
|
|||
}
|
||||
|
||||
.detailPageContent {
|
||||
max-width: 850px;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.primaryDetailPageContent {
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
</li>
|
||||
<li>
|
||||
<input type="checkbox" id="chkSaveLocal" name="chkSaveLocal" data-mini="true" />
|
||||
<label for="chkSaveLocal">Save metadata and images within media folders </label>
|
||||
<div class="fieldDescription">Save downloaded metadata and images into media folders where they can be stored permanently and easily edited.</div>
|
||||
<label for="chkSaveLocal">Save images within media folders </label>
|
||||
<div class="fieldDescription">Save downloaded images into media folders where they can be stored permanently and easily edited. Metadata savers are configured separately on a per-type basis.</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="selectImageSavingConvention">Image saving convention: </label>
|
||||
|
|
|
@ -1602,6 +1602,10 @@
|
|||
|
||||
$('.libraryTree', page).on('itemclicked', function (event, data) {
|
||||
|
||||
if (data.itemType == "livetvservice") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.id != currentItem.Id) {
|
||||
|
||||
MetadataEditor.currentItemId = data.id;
|
||||
|
|
|
@ -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();
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue