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,7 +83,10 @@ function changeDisplayName () {
|
|||
$('#oldDisplayName').val($('#displayName').val());
|
||||
// update displayName on the top right expand button
|
||||
$('#expandDisplayName').text($('#displayName').val());
|
||||
updateAvatar();
|
||||
// update avatar if avatar is available
|
||||
if(!$('#removeavatar').hasClass('hidden')) {
|
||||
updateAvatar();
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('#newdisplayname').val(data.data.displayName);
|
||||
|
|
Loading…
Reference in New Issue