Pascal Gloor hace 5 años
padre
commit
8f96963d82
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      www/js/autodoc.js

+ 5
- 1
www/js/autodoc.js Ver fichero

@@ -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);
}
}

Cargando…
Cancelar
Guardar