From bcc88c7b186335f641f35ae1f62d9d3e2701cdba Mon Sep 17 00:00:00 2001 From: algo74 <33349883+algo74@users.noreply.github.com> Date: Sat, 12 May 2018 18:44:08 -0400 Subject: [PATCH 1/2] Update imageuploadify.js --- imageuploadify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageuploadify.js b/imageuploadify.js index bd8c347..e8690fc 100644 --- a/imageuploadify.js +++ b/imageuploadify.js @@ -380,7 +380,7 @@ 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") { + else if (inputs[index].getAttribute("type") != "file") { formData.append(inputs[index].name, inputs[index].value); } } @@ -422,4 +422,4 @@ $.fn.imageuploadify.defaults = { }; -}(jQuery, window, document)); \ No newline at end of file +}(jQuery, window, document)); From 4131dd94dc7b7caebd5743e5fef59419e2741104 Mon Sep 17 00:00:00 2001 From: algo74 <33349883+algo74@users.noreply.github.com> Date: Sat, 12 May 2018 18:45:02 -0400 Subject: [PATCH 2/2] Update imageuploadify.min.js --- dist/imageuploadify.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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