changeset 3111:495ec3d3893d

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Jan 2019 10:59:49 +0100
parents 7047222cfa96
children 1bedab6993d4 0e75026a2c02
files OrthancExplorer/file-upload.js
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancExplorer/file-upload.js	Fri Jan 11 10:55:18 2019 +0100
+++ b/OrthancExplorer/file-upload.js	Fri Jan 11 10:59:49 2019 +0100
@@ -3,8 +3,6 @@
 var totalUpload = 0;
 
 $(document).ready(function() {
-  var progress;
-
   // Initialize the jQuery File Upload widget:
   $('#fileupload').fileupload({
     //dataType: 'json',
@@ -35,7 +33,7 @@
     .bind('fileuploadsend', function (e, data) {
       // Update the progress bar. Note: for some weird reason, the
       // "fileuploadprogressall" does not work under Firefox.
-      progress = parseInt(currentUpload / totalUploads * 100, 10);
+      var progress = parseInt(currentUpload / totalUploads * 100, 10);
       currentUpload += 1;
       $('#progress .label').text('Uploading: ' + progress + '%');
       $('#progress .bar')