Chrome. I suppose that would be simpler, it probably will be a bit faster
as well.
On Apr 3, 2013 8:02 PM, "Max Goodman" <notifications@github.com> wrote:

> In r2/r2/templates/subredditstylesheet.html:
>
> > @@ -220,6 +220,14 @@ <h2 class="error">${_('Your edit will not be saved!')}</h2>
> >                          .replace(/[ _]/g, "-");
> >                      $('#img-name').val(f);
> >                  }
> > +
> > +                var ext = file_input.value
> > +                    .split('.').pop().toLowerCase()
> > +                    .replace("jpeg", "jpg");
> > +                if (ext == 'png' || ext == 'jpg') {
> > +                    $('input:radio[name=img_type][value="' + ext + '"]').attr('checked', true);
> > +                    $('input:radio[name=img_type][value!="' + ext + '"]').attr('checked', false);
>
> Hrm, what browser are you testing on? Perhaps this is browser specific
> behavior.
>
> What about simplifying slightly to uncheck all of the inputs first, and
> then check the one you want?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/reddit/reddit/pull/729/files#r3649143>
> .
>