mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix password editing
This commit is contained in:
parent
09a2a5363e
commit
5467849864
1 changed files with 11 additions and 16 deletions
|
@ -92,12 +92,12 @@
|
|||
case evt.target.error.ABORT_ERR:
|
||||
break; // noop
|
||||
default:
|
||||
{
|
||||
require(['toast'], function (toast) {
|
||||
toast(Globalize.translate('FileReadError'));
|
||||
});
|
||||
break;
|
||||
}
|
||||
{
|
||||
require(['toast'], function (toast) {
|
||||
toast(Globalize.translate('FileReadError'));
|
||||
});
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -218,24 +218,19 @@
|
|||
|
||||
$('.newImageForm').off('submit', MyProfilePage.onImageSubmit).on('submit', MyProfilePage.onImageSubmit);
|
||||
|
||||
page.querySelector('#uploadUserImage').addEventListener('change', function(e) {
|
||||
page.querySelector('#uploadUserImage').addEventListener('change', function (e) {
|
||||
setFiles(page, e.target.files);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
define(['jQuery'], function ($) {
|
||||
|
||||
function loadUser(page) {
|
||||
|
||||
var userid = getParameterByName("userId");
|
||||
|
||||
ApiClient.getUser(userid).then(function (user) {
|
||||
|
||||
Dashboard.getCurrentUser().then(function(loggedInUser) {
|
||||
|
||||
Dashboard.getCurrentUser().then(function (loggedInUser) {
|
||||
|
||||
Dashboard.setPageTitle(user.Name);
|
||||
|
||||
var showPasswordSection = true;
|
||||
|
@ -335,8 +330,8 @@ define(['jQuery'], function ($) {
|
|||
});
|
||||
loadUser(page);
|
||||
|
||||
}, function() {
|
||||
|
||||
}, function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
Dashboard.alert({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue