diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-17 19:50:12 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-17 19:50:12 +0100 |
commit | 876e032d09f60844f02289a4909d310c4ecf7081 (patch) | |
tree | 86d2d28b9da35cff1e450b86e1f866a7f4f9a775 /settings/js | |
parent | f957ca405f073cbc7fd5bc8cd2a50e0ba026e8d9 (diff) | |
parent | d79c8c6d132d63705e9448e89602a7191b37586a (diff) | |
download | nextcloud-server-876e032d09f60844f02289a4909d310c4ecf7081.tar.gz nextcloud-server-876e032d09f60844f02289a4909d310c4ecf7081.zip |
Merge pull request #23370 from owncloud/fix-username-change
Update avatar on username change if avatar is set
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/personal.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index b0bfa8eb230..3b2316d0614 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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); |