lib/ecrire/app/assets/javascripts/admin/posts/header.coffee in ecrire-0.31.1 vs lib/ecrire/app/assets/javascripts/admin/posts/header.coffee in ecrire-0.31.2

- old
+ new

@@ -61,10 +61,10 @@ failed: (e) => errors = JSON.parse(e.response.target.responseText) @hide(@template('div.status.uploading')) @show(@template('div.error.status')) ul = @template('div.error.status').querySelector('ul') - @on 'click', @template('div.error.status').querySelector('button'), @clear + @on 'click', @element().querySelector('div.error.status button'), @clear for error in errors ul.insertAdjacentHTML('beforeend', "<li>#{error}</li>") open: (e) => @element().querySelector('input[type=file]').click()