mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #1450 from int2001/no_file
Don't disable button if no file was chosen
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user