Fixed new jquery 1.9 issue, after is not working on nodes without parents anymore.
This commit is contained in:
parent
1c872e690f
commit
6f8d3ee1b6
1 changed files with 1 additions and 1 deletions
|
@ -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 = =>
|
||||
|
|
Loading…
Reference in a new issue