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-09-08 21:15:31 -04:00
parent 8f3dc87100
commit 2a8364b21c
4 changed files with 40 additions and 6 deletions

View file

@ -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 {