summaryrefslogtreecommitdiffstats
path: root/apps/settings/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-10-27 19:52:10 +0100
committerGitHub <noreply@github.com>2020-10-27 19:52:10 +0100
commit157c5abbc4bfe822b3bd1e429383b44b62ea3a52 (patch)
treea877fa1aca824ab31f280e9ec8884f8513e29c1e /apps/settings/js
parent79498548374d054bae20f6e026a0343c77f0cf16 (diff)
parent76be86789883b871debb6599baef59d41d18d5e9 (diff)
downloadnextcloud-server-157c5abbc4bfe822b3bd1e429383b44b62ea3a52.tar.gz
nextcloud-server-157c5abbc4bfe822b3bd1e429383b44b62ea3a52.zip
Merge pull request #23721 from nextcloud/reset-avatar-cropper
reset avatar cropper before showing
Diffstat (limited to 'apps/settings/js')
-rw-r--r--apps/settings/js/settings/personalInfo.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js
index 3f1a046bc3f..a6055fd7a94 100644
--- a/apps/settings/js/settings/personalInfo.js
+++ b/apps/settings/js/settings/personalInfo.js
@@ -134,6 +134,7 @@ function avatarResponseHandler (data) {
oc_userconfig.avatar.generated = false;
updateAvatar();
} else if (data.data === "notsquare") {
+ cleanCropper();
showAvatarCropper();
} else {
$warning.show();