Skip to content

Commit

Permalink
changed arrow functions to default function call to support Dropzone …
Browse files Browse the repository at this point in the history
…on older IE Intances
  • Loading branch information
Patrick Hener committed Nov 3, 2021
1 parent 0a62fe0 commit 430a483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/myhttp/static/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ <h5>{{.ID}}</h5>
maxFiles: 100,
maxFilesize: 10240,

init: () => {
document.querySelector("button[type=submit]#submit-dropzone").addEventListener("click", (e) => {
init: function () {
document.querySelector("button[type=submit]#submit-dropzone").addEventListener("click", function(e) {
e.preventDefault();
e.stopPropagation();
myDropzone.processQueue();
Expand All @@ -344,7 +344,7 @@ <h5>{{.ID}}</h5>
}
});

myDropzone.on("successmultiple", () => {
myDropzone.on("successmultiple", function () {
location.reload();
});
</script>
Expand Down

0 comments on commit 430a483

Please sign in to comment.