| @@ -242,11 +242,11 @@ function upload_handler() { | |||
| function upload_read_event(e) { | |||
| if ( e.type == 'progress' ) { | |||
| var progress = Math.floor(e.originalEvent.loaded / e.originalEvent.total * 50); | |||
| if ( percent < 1 ) { percent = 1; } | |||
| if ( percent >= 100 ) { perc} | |||
| if ( progress < 1 ) { progress = 1; } | |||
| if ( progress > 49 ) { progress = 49; } | |||
| temp.upload[e.data]['progress'] = progress; | |||
| } | |||
| } | |||
| console.log(e); | |||
| } | |||