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

show restart message when changing language

This commit is contained in:
Luke Pulverenti 2015-01-30 11:12:08 -05:00
parent 973da05e0a
commit a040ff3a35
2 changed files with 9 additions and 1 deletions

View file

@ -3,6 +3,8 @@
var brandingConfigKey = "branding";
var currentBrandingOptions;
var currentLanguage;
function loadPage(page, config, languageOptions) {
if (Dashboard.lastSystemInfo) {
@ -19,6 +21,8 @@
})).val(config.UICulture).selectmenu('refresh');
currentLanguage = config.UICulture;
$('#txtCachePath', page).val(config.CachePath || '');
Dashboard.hideLoadingMsg();
@ -96,6 +100,10 @@
config.CachePath = $('#txtCachePath', form).val();
if (config.UICulture != currentLanguage) {
Dashboard.showDashboardRefreshNotification();
}
ApiClient.updateServerConfiguration(config).done(function () {
refreshPageTitle(page);