From 9f8c43c0dd7b8f95cdbe1acbcd69f4409d459b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Thu, 22 Jan 2015 15:57:03 +0100 Subject: [PATCH] Correction de la barre d'upload. --- Resources/js/widget/file_upload.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Resources/js/widget/file_upload.js b/Resources/js/widget/file_upload.js index 9fcea628..8c421ab3 100644 --- a/Resources/js/widget/file_upload.js +++ b/Resources/js/widget/file_upload.js @@ -125,13 +125,9 @@ } var progress = Math.floor(data.loaded / data.total * 100); data.context.each(function () { - $(this).find('.progress') - .show() - .attr('aria-valuenow', progress) - .children().first().css('width',progress + '%'); - $(this).find('.progress-text') - .show() - .html(progress + '% ('+formatBitrate(data.bitrate)+')'); + $this.find('.progress').show().attr('aria-valuenow', progress); + $this.find('.progress-bar').css('width', progress + '%'); + $this.find('.progress-text').show().html(progress + '% ('+formatBitrate(data.bitrate)+')'); }); } } -- GitLab