improve file upload UI

This commit is contained in:
Pierre Bondoerffer
2017-08-09 10:54:20 +02:00
parent ca686f9c92
commit 34ba673cd3
5 changed files with 40 additions and 23 deletions

View File

@@ -56,12 +56,13 @@ define([
$row.find('.upCancel').html('-');
var $pv = $row.find('.progressValue');
var $pb = $row.find('.progressContainer');
var $pc = $row.find('.upProgress');
var $link = $row.find('.upLink');
var updateProgress = function (progressValue) {
$pv.text(Math.round(progressValue*100)/100 + '%');
$pb.css({
width: (progressValue/100)*188+'px'
width: (progressValue/100)*$pc.width()+'px'
});
};