diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-03-17 17:34:22 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-03-17 17:34:22 +0100 |
commit | d79c8c6d132d63705e9448e89602a7191b37586a (patch) | |
tree | d6bca8efee94f567de78917111298c8255196c02 /settings/js/personal.js | |
parent | 8fb3e446107da26ac654ffc25af6814a17cb9022 (diff) | |
download | nextcloud-server-d79c8c6d132d63705e9448e89602a7191b37586a.tar.gz nextcloud-server-d79c8c6d132d63705e9448e89602a7191b37586a.zip |
Update avatar on username change if avatar is set
* fixes #20455
Diffstat (limited to 'settings/js/personal.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); |