Merge pull request #23378 from owncloud/stable9-backport-23370

[stable9] Update avatar on username change if avatar is set
This commit is contained in:
Thomas Müller 2016-03-21 09:49:32 +01:00
commit 571de654cd
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}