| @@ -266,9 +266,9 @@ function upload_read_event(e) { | |||
| xhr: function() | |||
| { | |||
| var xhr = $.ajaxSettings.xhr(); | |||
| xhr.upload.addEventListener("progress", (function(evt){ | |||
| xhr.upload.addEventListener("progress", (function(){ | |||
| var id = e.data; | |||
| return function() { | |||
| return function(evt) { | |||
| if (evt.lengthComputable) { | |||
| var progress = Math.floor(evt.loaded / evt.total * 50); | |||
| if ( progress < 1 ) { progress = 1; } | |||