Skip to content

Commit

Permalink
Merge pull request wavelog#1450 from int2001/no_file
Browse files Browse the repository at this point in the history
Don't disable button if no file was chosen
  • Loading branch information
int2001 authored Jan 3, 2025
2 parents 1ef6469 + 10f5443 commit 13792c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/sections/adif.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 13792c4

Please sign in to comment.