show restart message when changing language
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>${TitleSync}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="syncJobPage" data-role="page" class="page type-interior syncConfigurationPage syncJobPage">
|
||||
<div id="syncJobPage" data-role="page" class="page type-interior syncConfigurationPage syncJobPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync">
|
||||
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
|
||||
Reference in New Issue
Block a user