mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add additional metadata config tab
This commit is contained in:
parent
121d1de0af
commit
02cd0a7b6f
8 changed files with 111 additions and 45 deletions
38
dashboard-ui/scripts/metadataimageextraction.js
Normal file
38
dashboard-ui/scripts/metadataimageextraction.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
var MetadataImageExtractionPage = {
|
||||
|
||||
onPageShow: function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var page = this;
|
||||
|
||||
ApiClient.getServerConfiguration().done(function (result) {
|
||||
MetadataImageExtractionPage.load(page, result);
|
||||
});
|
||||
},
|
||||
|
||||
load: function (page, config) {
|
||||
|
||||
$('#chkVIdeoImages', page).checked(config.EnableVideoImageExtraction).checkboxradio("refresh");
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
},
|
||||
|
||||
onSubmit: function () {
|
||||
var form = this;
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.getServerConfiguration().done(function (config) {
|
||||
|
||||
config.EnableVideoImageExtraction = $('#chkVIdeoImages', form).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
$(document).on('pageshow', "#metadataImageExtractionPage", MetadataImageExtractionPage.onPageShow);
|
Loading…
Add table
Add a link
Reference in a new issue