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

add metadata save message

This commit is contained in:
Luke Pulverenti 2016-04-20 01:32:37 -04:00
parent c0956ac97f
commit 1f343d6db9

View file

@ -34,13 +34,30 @@
config.EnablePathSubstitution = form.querySelector('#chkEnablePathSubstitution').checked; config.EnablePathSubstitution = form.querySelector('#chkEnablePathSubstitution').checked;
config.EnableExtraThumbsDuplication = form.querySelector('#chkEnableExtraThumbs').checked; config.EnableExtraThumbsDuplication = form.querySelector('#chkEnableExtraThumbs').checked;
ApiClient.updateNamedConfiguration(metadataKey, config).then(Dashboard.processServerConfigurationUpdateResult); ApiClient.updateNamedConfiguration(metadataKey, config).then(function () {
Dashboard.processServerConfigurationUpdateResult();
showConfirmMessage(config);
});
}); });
// Disable default form submission // Disable default form submission
return false; return false;
} }
function showConfirmMessage(config) {
var msg = [];
msg.push(Globalize.translate('MetadataSettingChangeHelp'));
require(['alert'], function (alert) {
alert({
text: msg.join('<br/><br/>')
});
});
}
function getTabs() { function getTabs() {
return [ return [
{ {