#966 (continue'd): Allow attachments of several files to the same ticket (the previous fix breaks after attaching 1 file)

SVN:2.0.2[3288]
This commit is contained in:
Denis Flaven
2014-07-25 15:18:46 +00:00
parent 0fba65d2c5
commit 0841367022

View File

@@ -29,7 +29,7 @@ jQuery.extend(
var fileId = 'jUploadFile' + id;
var form = jQuery('<form action="" method="POST" name="' + formId + '" id="' + formId + '" enctype="multipart/form-data"></form>');
var oldElement = jQuery('#' + fileElementId);
var newElement = jQuery(oldElement).clone();
var newElement = jQuery(oldElement).clone(true);
jQuery(oldElement).attr('id', fileId);
jQuery(oldElement).before(newElement);
jQuery(oldElement).appendTo(form);