| // console.log("upload_status"); | // console.log("upload_status"); | ||||
| $.each(temp.upload, function (id, file) { | $.each(temp.upload, function (id, file) { | ||||
| if ($('.autodoc_upload_status_' + id).length) { | if ($('.autodoc_upload_status_' + id).length) { | ||||
| console.log("creating element"); | |||||
| var obj = $(".autodoc_template_progress").children().clone(); | var obj = $(".autodoc_template_progress").children().clone(); | ||||
| $('.autodoc_upload_status').append(obj); | $('.autodoc_upload_status').append(obj); | ||||
| } | } | ||||
| var obj = $('.autodoc_upload_status_' + id).children(); | var obj = $('.autodoc_upload_status_' + id).children(); | ||||
| console.log("upload child", obj); | |||||
| if (file.error != null) { | if (file.error != null) { | ||||
| $(obj).html(file.obj.name + ': ' + file.error); | $(obj).html(file.obj.name + ': ' + file.error); | ||||
| $(obj).css('width', '100%'); | $(obj).css('width', '100%'); | ||||
| } | } | ||||
| }); | }); | ||||
| setTimeout(function() { upload_status(); }, 100); | |||||
| setTimeout(function() { upload_status(); }, 1000); | |||||
| } | } |