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:
parent
973da05e0a
commit
a040ff3a35
2 changed files with 9 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue