From 6f8d3ee1b6ca40dc12da336de0c588e6e86d8f2a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 8 May 2013 23:20:31 +0200 Subject: [PATCH] Fixed new jquery 1.9 issue, after is not working on nodes without parents anymore. --- .../app/controllers/_application_controller_form.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee index e45b2c1e8..5d107afb8 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee @@ -324,7 +324,7 @@ class App.ControllerForm extends App.Controller item = $( App.view('generic/textarea')( attribute: attribute ) ) if attribute.upload fileUploaderId = 'file-uploader-' + new Date().getTime() + '-' + Math.floor( Math.random() * 99999 ) - item.after('
') + item = $( item.html() + '
' ) # add file uploader u = =>