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

add message about changing metadata settings

This commit is contained in:
Luke Pulverenti 2016-04-19 12:50:17 -04:00
parent f331873f91
commit e625f89788
2 changed files with 29 additions and 2 deletions

View file

@ -27,13 +27,38 @@
config.MetadataCountryCode = $('#selectCountry', form).val();
config.DownloadImagesInAdvance = $('#chkDownloadImagesInAdvance', form).checked();
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
ApiClient.updateServerConfiguration(config).then(function() {
Dashboard.processServerConfigurationUpdateResult();
showConfirmMessage(config);
});
});
// Disable default form submission
return false;
}
function showConfirmMessage(config) {
var msg = [];
msg.push(Globalize.translate('MetadataSettingChangeHelp'));
if (config.DownloadImagesInAdvance) {
msg.push(Globalize.translate('DownloadImagesInAdvanceWarning'));
}
if (!msg.length) {
return;
}
require(['alert'], function (alert) {
alert({
text: msg.join('<br/><br/>')
});
});
}
function getTabs() {
return [
{