Skip to content

Commit

Permalink
Fixed issue with percentage in upload.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrushton committed Aug 3, 2015
1 parent 10dccf7 commit 5822c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
uploader.start();
},
UploadProgress: function (up, file) {
var percent = file.percent + '%';
var percent = file.percent;
$('#' + file.id).find('.progress-bar').css({'width': percent}).html('<span class="sr-only">'+Math.round(percent)+'% Complete</span>');
},
FileUploaded: function (up, file, info) {
Expand Down

0 comments on commit 5822c24

Please sign in to comment.