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 547
547
if ( elProgress ) {
548
548
elProgress . style . width = '' ;
549
549
}
550
+ fileInput . disabled = false ;
550
551
btnSubmit . disabled = false ;
551
552
}
552
553
588
589
589
590
xhr . open ( form . method , form . action ) ;
590
591
xhr . send ( parts ) ;
592
+ fileInput . disabled = true ;
591
593
btnSubmit . disabled = true ;
592
594
}
593
595
Original file line number Diff line number Diff line change @@ -486,6 +486,7 @@ function onComplete() {
486
486
if (elProgress) {
487
487
elProgress.style.width = '';
488
488
}
489
+ fileInput.disabled = false;
489
490
btnSubmit.disabled = false;
490
491
}
491
492
function onLoad() {
@@ -521,6 +522,7 @@ xhr.upload.addEventListener('progress', onProgress);
521
522
}
522
523
xhr.open(form.method, form.action);
523
524
xhr.send(parts);
525
+ fileInput.disabled = true;
524
526
btnSubmit.disabled = true;
525
527
}
526
528
form.addEventListener('submit', function (e) {
You can’t perform that action at this time.
0 commit comments