diff --git a/dist/imageuploadify.min.js b/dist/imageuploadify.min.js index c8aea0e..75782c6 100644 --- a/dist/imageuploadify.min.js +++ b/dist/imageuploadify.min.js @@ -18,7 +18,7 @@ button.mouseenter(function onMouseEnter(event){button.css("background","#3AA0FF" imagesList.find(".imageuploadify-container:nth-child("+boxesNb+"n+4)").css("margin-left",marginSize+"px");imagesList.find(".imageuploadify-container:nth-child("+boxesNb+"n+3)").css("margin-right",marginSize+"px");},500);});}) $(self).on("change",function onChange(){const files=this.files;retrieveFiles(files);});$(self).closest("form").on("submit",function(event){event.stopPropagation();event.preventDefault(event);const inputs=this.querySelectorAll("input, textarea, select, button");const formData=new FormData();for(let index=0;indexi;++i){if(options[i].selected){formData.append(inputs[index].getAttribute("name"),options[i].value);}}} else if(!inputs[index].getAttribute("type")||((inputs[index].getAttribute("type").toLowerCase())!=="checkbox"&&(inputs[index].getAttribute("type").toLowerCase())!=="radio")||inputs[index].checked){formData.append(inputs[index].name,inputs[index].value);} -else if($(inputs[index]).getAttribute("type") !="file"){formData.append(inputs[index].name,inputs[index].value);}} +else if(inputs[index].getAttribute("type") !="file"){formData.append(inputs[index].name,inputs[index].value);}} for(var i=0;i