mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
live saving on the metadata pages
This commit is contained in:
parent
a6b72afc99
commit
ff2b7ed3dc
6 changed files with 107 additions and 98 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
var checkedAttribute = configuration.InternetProviderExcludeTypes.indexOf(type) != -1 ? ' checked="checked"' : '';
|
||||
|
||||
html += '<input' + checkedAttribute + ' class="chkItemType" data-itemtype="' + type + '" type="checkbox" name="' + id + '" id="' + id + '" />';
|
||||
html += '<input' + checkedAttribute + ' class="chkItemType" data-itemtype="' + type + '" type="checkbox" name="' + id + '" id="' + id + '" onchange="AdvancedMetadataConfigurationPage.submit();" />';
|
||||
html += '<label for="' + id + '">' + type + '</label>';
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,12 @@
|
|||
$('#divItemTypes', page).html(html).trigger("create");
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
|
||||
$('.btnSubmit', $.mobile.activePage)[0].click();
|
||||
|
||||
},
|
||||
|
||||
onSubmit: function () {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
|
@ -54,7 +60,7 @@
|
|||
return currentCheckbox.getAttribute('data-itemtype');
|
||||
});
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
ApiClient.updateServerConfiguration(config);
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
|
|
|
@ -79,6 +79,12 @@
|
|||
$('#selectLanguage', '#metadataConfigurationPage').html(html).selectmenu("refresh");
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
|
||||
$('.btnSubmit', $.mobile.activePage)[0].click();
|
||||
|
||||
},
|
||||
|
||||
onSubmit: function () {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
|
@ -92,7 +98,7 @@
|
|||
config.PreferredMetadataLanguage = $('#selectLanguage', form).val();
|
||||
config.MetadataCountryCode = $('#selectCountry', form).val();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
ApiClient.updateServerConfiguration(config);
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
|
|
|
@ -42,6 +42,12 @@
|
|||
Dashboard.hideLoadingMsg();
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
|
||||
$('.btnSubmit', $.mobile.activePage)[0].click();
|
||||
|
||||
},
|
||||
|
||||
onSubmit: function () {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
|
@ -75,7 +81,7 @@
|
|||
config.DownloadMusicAlbumImages.Primary = $('#chkDownloadAlbumPrimary', form).checked();
|
||||
config.DownloadMusicAlbumImages.Backdrops = $('#chkDownloadAlbumBackdrops', form).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
ApiClient.updateServerConfiguration(config);
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue