Fixed new jquery 1.9 issue, after is not working on nodes without parents anymore.

This commit is contained in:
Martin Edenhofer 2013-05-08 23:20:31 +02:00
parent 1c872e690f
commit 6f8d3ee1b6

View file

@ -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('<div class="' + attribute.class + '" id="' + fileUploaderId + '"></div>')
item = $( item.html() + '<div class="file-uploader ' + attribute.class + '" id="' + fileUploaderId + '"></div>' )
# add file uploader
u = =>