From 430a483a5a744fca9186e5ddc374412b604b862b Mon Sep 17 00:00:00 2001 From: Patrick Hener Date: Wed, 3 Nov 2021 11:19:31 +0100 Subject: [PATCH] changed arrow functions to default function call to support Dropzone on older IE Intances --- internal/myhttp/static/templates/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/myhttp/static/templates/index.html b/internal/myhttp/static/templates/index.html index 43a464e..d525244 100644 --- a/internal/myhttp/static/templates/index.html +++ b/internal/myhttp/static/templates/index.html @@ -334,8 +334,8 @@
{{.ID}}
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(); @@ -344,7 +344,7 @@
{{.ID}}
} }); - myDropzone.on("successmultiple", () => { + myDropzone.on("successmultiple", function () { location.reload(); });