This commit is contained in:
Michael RICOIS 2017-08-04 10:28:07 +02:00
parent 0cdac57abb
commit 98a85870bb

View File

@ -13,12 +13,11 @@ $(function(){
$('.configurator-opt-file').fileupload({
dataType: 'json',
done: function (e, data) {
$.each(data.result.files, function (index, file) {
$.each(data.result.files, function (index, file) {
// Set hidden field
$('input[name='+$(e.target).data('field')+']').val(file.name);
// Set Response
$('span#response-'+$(e.target).data('field')).text(file.name).trigger('change');
$(e.target).parent().find('span.filename').text('');
});
},