| @@ -239,24 +239,28 @@ function upload_status() { | |||
| $.each(temp.upload, function(id, file) { | |||
| console.log(id,file); | |||
| var obj = $(".autodoc_template_progress").children(); | |||
| $(obj).children().html(file.name); | |||
| $(obj).children().html(file.obj.name); | |||
| $(obj).children().css('width', "50%"); | |||
| if ( file.progress==1) { | |||
| if ( file.error ) { | |||
| $(obj).children().html(file.name + ': ' + file.error); | |||
| $(obj).children().addClass('bg-danger'); | |||
| $(obj).children().removeClass("progress-bar-animated"); | |||
| $(obj).children().css('width', "100%"); | |||
| } | |||
| else { | |||
| finished=0; | |||
| $(obj).children().addClass('bg-success'); | |||
| $(obj).children().css('width', "100%"); | |||
| $(obj).children().removeClass("progress-bar-animated"); | |||
| } | |||
| } | |||
| console.log(obj); | |||
| $('.autodoc_upload_status').append(obj); | |||
| }); | |||
| if ( !finished || temp.upload.length == 0 ) { | |||
| console.log("status again"); | |||
| setTimeout(upload_status, 1000); | |||
| } | |||
| } | |||