Fix progress upload

This commit is contained in:
Thomas Zilio 2018-07-02 15:50:07 +02:00
parent 459f75cab8
commit 9924755763
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ $(document).ready(function(){
data: data,
type: "post",
uploadProgress: function(event, position, total, percentComplete) {
$("#'.$attachment_id.' #upload-info").html(percentComplete + "%");
$("#'.$attachment_id.' #upload").prop("disabled", true).html(percentComplete + "%").removeClass("btn-success").addClass("btn-info");
},
success: function(data){
$("#'.$attachment_id.'").load(globals.rootdir + "/ajax.php?op=list_attachments&id_module='.$options['id_module'].'&id_record='.$options['id_record'].'&id_plugin='.$options['id_plugin'].'");