I did not! That’s totally awesome; I’d much rather use that and shall.
- Matthew Riley MacPherson | lonelyvegan.com


On December 9, 2013 at 3:16:13 PM, Potch (notifications@github.com) 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'
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
…
—
Reply to this email directly or view it on GitHub.