| $(obj).css('width', '100%'); | $(obj).css('width', '100%'); | ||||
| $(obj).addClass('bg-danger'); | $(obj).addClass('bg-danger'); | ||||
| $(obj).removeClass("progress-bar-animated"); | $(obj).removeClass("progress-bar-animated"); | ||||
| $(obj).removeClass("progress-bar-striped"); | |||||
| } | } | ||||
| else if (file.progress == 100) { | else if (file.progress == 100) { | ||||
| $(obj).html(file.obj.name); | $(obj).html(file.obj.name); | ||||
| $(obj).addClass('bg-success'); | $(obj).addClass('bg-success'); | ||||
| $(obj).removeClass('progress-bar-animated'); | $(obj).removeClass('progress-bar-animated'); | ||||
| $(obj).removeClass("progress-bar-striped"); | |||||
| $(obj).css('width', '100%'); | $(obj).css('width', '100%'); | ||||
| } | } | ||||
| else if (file.progress < 50) { | else if (file.progress < 50) { |