| conf.run.upload_handler = 0; | conf.run.upload_handler = 0; | ||||
| } | } | ||||
| else { | else { | ||||
| setTimeout(function () { upload_handler(); }, 2000); | |||||
| setTimeout(function () { upload_handler(); }, 500); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else if (file.progress == 100) { | else if (file.progress == 100) { | ||||
| $(obj).html(file.obj.name); | $(obj).html(file.obj.name); | ||||
| $(obj).css('width', '100%'); | |||||
| $(obj).addClass('bg-success'); | $(obj).addClass('bg-success'); | ||||
| $(obj).removeClass('progress-bar-animated'); | $(obj).removeClass('progress-bar-animated'); | ||||
| $(obj).removeClass("progress-bar-striped"); | $(obj).removeClass("progress-bar-striped"); | ||||
| $(obj).css('width', '100%'); | |||||
| } | } | ||||
| else if (file.progress < 50) { | else if (file.progress < 50) { | ||||
| $(obj).html(file.obj.name + ': ' + 'reading file'); | $(obj).html(file.obj.name + ': ' + 'reading file'); |