mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
33 lines
650 B
JavaScript
33 lines
650 B
JavaScript
(function ($, window, document) {
|
|
|
|
function loadUser(page, user) {
|
|
|
|
Dashboard.setPageTitle(user.Name);
|
|
|
|
$('.lnkEditUserPreferences', page).attr('href', 'myprofile.html?userId=' + user.Id);
|
|
|
|
Dashboard.hideLoadingMsg();
|
|
}
|
|
|
|
function loadData(page) {
|
|
|
|
Dashboard.showLoadingMsg();
|
|
|
|
var userId = getParameterByName("userId");
|
|
|
|
ApiClient.getUser(userId).done(function (user) {
|
|
|
|
loadUser(page, user);
|
|
|
|
});
|
|
}
|
|
|
|
$(document).on('pagebeforeshow', "#userPasswordPage", function () {
|
|
|
|
var page = this;
|
|
|
|
loadData(page);
|
|
|
|
});
|
|
|
|
})(jQuery, window, document); |