Don't disable button if no file was chosen

This commit is contained in:
int2001
2025-01-03 11:18:19 +00:00
parent 1ef6469786
commit 10f5443279

View File

@@ -3,6 +3,9 @@ $(document).ready(function(){
e.preventDefault();
var fi = document.getElementById("userfile");
var file = fi.files[0];;
if (!(file)) {
return;
}
$("#prepare_sub").prop("disabled",true);
if (JSZip.support.blob) { // Check if Browser supports ZIP
var zip = new JSZip();