• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

As designed Delete Current Avatar Check Box Missing

FredC

Well-known member
#6
Its not a bug. Because you're using Gravatar not custom avatar uploaded so can't remove. *Similar for me* :D
I'm not so sure I use Gravatar also and I have the option to delete my current avatar

Edit: was going to provide a screenshot but that is impossible with Safari on iOS 8 currently.
 

Mr. Goodie2Shoes

Well-known member
#9
After looking into the code:
Code:
    setCropFormVisibility: function(avatarDate)
     {
       if (parseInt(avatarDate, 10))
       {
         this.$form.find('#DeleteAvatar').removeAttr('checked');
         $('label[for=DeleteAvatar], #ExistingCustom').xfFadeIn(XenForo.speed.normal);
       }
       else
       {
         $('label[for=DeleteAvatar], #ExistingCustom').hide();
       }
     }
The check box only shows up when you have a custom avatar uploaded regardless of which radio button you have selected...
 

FredC

Well-known member
#13
After looking into the code:
Code:
    setCropFormVisibility: function(avatarDate)
     {
       if (parseInt(avatarDate, 10))
       {
         this.$form.find('#DeleteAvatar').removeAttr('checked');
         $('label[for=DeleteAvatar], #ExistingCustom').xfFadeIn(XenForo.speed.normal);
       }
       else
       {
         $('label[for=DeleteAvatar], #ExistingCustom').hide();
       }
     }
The check box only shows up when you have a custom avatar uploaded regardless of which radio button you have selected...
Confirmed
imagea12vb.jpg
 

FredC

Well-known member
#15
How come everyone else's says "Browse" and mine says "Choose File"? Possibly because i already have a image uploaded? Nope.. Maybe a browser thing? <---- Never mind just checked it is browser related.. Just one of those things that peaked my curiosity.
 
Last edited:

Mike

XenForo developer
Staff member
#18
Switching to Gravatar doesn't necessarily remove your custom avatar. You'll still see the option if you have one saved locally. I'm not going to change anything around here right now as the code is fairly entwined with this only showing up when there's a custom avatar, but selecting the "upload" radio but not doing anything would actually do the same thing.
 

Amaury

Well-known member
#19
Switching to Gravatar doesn't necessarily remove your custom avatar. You'll still see the option if you have one saved locally. I'm not going to change anything around here right now as the code is fairly entwined with this only showing up when there's a custom avatar, but selecting the "upload" radio but not doing anything would actually do the same thing.
Hm. Then I must have remembered wrong. I thought the deletion check box was there when no local avatar was saved.

Thanks!