Merge pull request #23378 from owncloud/stable9-backport-23370
[stable9] Update avatar on username change if avatar is set
This commit is contained in:
commit
571de654cd
|
@ -83,8 +83,11 @@ function changeDisplayName () {
|
|||
$('#oldDisplayName').val($('#displayName').val());
|
||||
// update displayName on the top right expand button
|
||||
$('#expandDisplayName').text($('#displayName').val());
|
||||
// update avatar if avatar is available
|
||||
if(!$('#removeavatar').hasClass('hidden')) {
|
||||
updateAvatar();
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('#newdisplayname').val(data.data.displayName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue