Fix broken upload since merge of new button branch

This commit is contained in:
Brice Maron 2011-11-06 13:34:22 +01:00
parent 75ff9abaca
commit 8de7c36b4c

View file

@ -163,7 +163,7 @@ $(document).ready(function() {
});
$('.file_upload_start').live('change',function(){
var form=$(this).parent().parent();
var form=$(this).closest('form');
var uploadId=form.attr('data-upload-id');
var files=this.files;
var target=form.children('iframe');