Did you know that html file input elements have a "click" method for just
this purpose? You can call that instead of triggering a fake event.
Semantics mostly but feels a touch less jQuery-hacky

On Monday, December 9, 2013, Matthew Riley MacPherson wrote:

> In www/js/views/venues.coffee:
>
> > @@ -269,6 +272,9 @@ define ['zepto', 'underscore', 'backbone', 'cs!lib/api', 'cs!lib/geo', 'localfor
> >          venue: @model
> >        $(@$el).html(html)
> >
> > +    activateUpload: () ->
> > +      $('#upload-photo').trigger 'click'
>
> File uploads can’t be styled, so this is just a cheap way to have a
> stylized “upload a photo” button that really just activates the file upload
> dialog.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tofumatt/around/pull/53/files#r8216396>
> .
>