app/assets/javascripts/components/posts.js.cjsx in octodmin-0.3.1 vs app/assets/javascripts/components/posts.js.cjsx in octodmin-0.3.2

- old
+ new

@@ -211,12 +211,11 @@ @setState(loading: true) $.getq("default", "/api/posts/#{@getParams().post_id}").always(@handleResponse).done(@handleSuccess).fail(@handleError) handleUpload: (event)-> form = $("<form><input type='file' name='file' /></form>") - event.disableButtons("cmdUpload") - form.find("input").on("change", (-> + event.disableButtons("cmdUpload") data = new FormData(form[0]) $.ajaxq("default", type: "POST" url: "/api/posts/#{@state.post.identifier}/upload" data: data