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

update translations

This commit is contained in:
Luke Pulverenti 2014-07-20 00:46:29 -04:00
parent c944079976
commit 640fc18b21
80 changed files with 2365 additions and 1909 deletions

View file

@ -12,6 +12,13 @@
})).val(config.UICulture).selectmenu('refresh');
$('#txtPortNumber', page).val(config.HttpServerPortNumber);
$('#txtDdns', page).val(config.WanDdns || '');
$('#chkEnableUpnp', page).checked(config.EnableUPnP).checkboxradio('refresh');
$('#txtCachePath', page).val(config.CachePath || '');
Dashboard.hideLoadingMsg();
}
@ -35,6 +42,30 @@
$('#txtLoginDisclaimer', page).val(config.LoginDisclaimer || '');
});
}).on('pageinit', "#dashboardGeneralPage", function () {
var page = this;
$('#btnSelectCachePath', page).on("click.selectDirectory", function () {
var picker = new DirectoryBrowser(page);
picker.show({
callback: function (path) {
if (path) {
$('#txtCachePath', page).val(path);
}
picker.close();
},
header: Globalize.translate('HeaderSelectServerCachePath'),
instruction: Globalize.translate('HeaderSelectServerCachePathHelp')
});
});
});
window.DashboardGeneralPage = {
@ -49,7 +80,13 @@
config.ServerName = $('#txtServerName', form).val();
config.UICulture = $('#selectLocalizationLanguage', form).val();
ApiClient.updateServerConfiguration(config).done(function() {
config.HttpServerPortNumber = $('#txtPortNumber', form).val();
config.EnableUPnP = $('#chkEnableUpnp', form).checked();
config.WanDdns = $('#txtDdns', form).val();
config.CachePath = $('#txtCachePath', form).val();
ApiClient.updateServerConfiguration(config).done(function () {
ApiClient.getNamedConfiguration(brandingConfigKey).done(function (brandingConfig) {