reset avatar cropper before showing
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
86c66c29a9
commit
5c93d08bc1
|
@ -134,6 +134,7 @@ function avatarResponseHandler (data) {
|
||||||
oc_userconfig.avatar.generated = false;
|
oc_userconfig.avatar.generated = false;
|
||||||
updateAvatar();
|
updateAvatar();
|
||||||
} else if (data.data === "notsquare") {
|
} else if (data.data === "notsquare") {
|
||||||
|
cleanCropper();
|
||||||
showAvatarCropper();
|
showAvatarCropper();
|
||||||
} else {
|
} else {
|
||||||
$warning.show();
|
$warning.show();
|
||||||
|
|
Loading…
Reference in New Issue