Remove image now not coming when user changes fullname. Fixes #17320
This commit is contained in:
parent
19dc02b8e0
commit
5fb96a4630
|
@ -107,8 +107,15 @@ function updateAvatar (hidedefault) {
|
||||||
}
|
}
|
||||||
$displaydiv.css({'background-color': ''});
|
$displaydiv.css({'background-color': ''});
|
||||||
$displaydiv.avatar(OC.currentUser, 145, true);
|
$displaydiv.avatar(OC.currentUser, 145, true);
|
||||||
|
$.get(OC.generateUrl(
|
||||||
$('#removeavatar').removeClass('hidden').addClass('inlineblock');
|
'/avatar/{user}/{size}',
|
||||||
|
{user: OC.currentUser, size: 1}
|
||||||
|
), function (result) {
|
||||||
|
if (typeof(result) === 'string') {
|
||||||
|
// Show the delete button when the avatar is custom
|
||||||
|
$('#removeavatar').removeClass('hidden').addClass('inlineblock');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAvatarCropper () {
|
function showAvatarCropper () {
|
||||||
|
|
Loading…
Reference in New Issue