Commit 9f8c43c0 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Correction de la barre d'upload.

Showing with 3 additions and 7 deletions
+3 -7
...@@ -125,13 +125,9 @@ ...@@ -125,13 +125,9 @@
} }
var progress = Math.floor(data.loaded / data.total * 100); var progress = Math.floor(data.loaded / data.total * 100);
data.context.each(function () { data.context.each(function () {
$(this).find('.progress') $this.find('.progress').show().attr('aria-valuenow', progress);
.show() $this.find('.progress-bar').css('width', progress + '%');
.attr('aria-valuenow', progress) $this.find('.progress-text').show().html(progress + '% ('+formatBitrate(data.bitrate)+')');
.children().first().css('width',progress + '%');
$(this).find('.progress-text')
.show()
.html(progress + '% ('+formatBitrate(data.bitrate)+')');
}); });
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment