File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 547547 if ( elProgress ) {
548548 elProgress . style . width = '' ;
549549 }
550+ fileInput . disabled = false ;
550551 btnSubmit . disabled = false ;
551552 }
552553
588589
589590 xhr . open ( form . method , form . action ) ;
590591 xhr . send ( parts ) ;
592+ fileInput . disabled = true ;
591593 btnSubmit . disabled = true ;
592594 }
593595
Original file line number Diff line number Diff line change @@ -486,6 +486,7 @@ function onComplete() {
486486if (elProgress) {
487487elProgress.style.width = '';
488488}
489+ fileInput.disabled = false;
489490btnSubmit.disabled = false;
490491}
491492function onLoad() {
@@ -521,6 +522,7 @@ xhr.upload.addEventListener('progress', onProgress);
521522}
522523xhr.open(form.method, form.action);
523524xhr.send(parts);
525+ fileInput.disabled = true;
524526btnSubmit.disabled = true;
525527}
526528form.addEventListener('submit', function (e) {
You can’t perform that action at this time.
0 commit comments