mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
8f3dc87100
commit
2a8364b21c
4 changed files with 40 additions and 6 deletions
|
@ -1,9 +1,22 @@
|
|||
(function ($, document, window) {
|
||||
|
||||
function onSaveComplete() {
|
||||
function onSaveComplete(user) {
|
||||
|
||||
var userId = user.Id;
|
||||
|
||||
var metadataKey = "xbmcmetadata";
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
Dashboard.navigate('wizardlibrary.html');
|
||||
ApiClient.getNamedConfiguration(metadataKey).done(function (config) {
|
||||
|
||||
config.UserId = userId;
|
||||
|
||||
ApiClient.updateNamedConfiguration(metadataKey, config).done(function () {
|
||||
|
||||
Dashboard.navigate('wizardlibrary.html');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function wizardUserPage() {
|
||||
|
@ -25,7 +38,10 @@
|
|||
|
||||
user.Name = $('#txtUsername', form).val();
|
||||
|
||||
ApiClient.updateUser(user).done(onSaveComplete);
|
||||
ApiClient.updateUser(user).done(function () {
|
||||
|
||||
onSaveComplete(user);
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue