From 62a661b7b59e175f855b77e9d4d01428500c68f6 Mon Sep 17 00:00:00 2001 From: vjeantet Date: Sat, 3 Oct 2020 12:21:58 +0200 Subject: checklist : fix download --- static/js/checklist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/checklist.js b/static/js/checklist.js index a0011ca..0466559 100644 --- a/static/js/checklist.js +++ b/static/js/checklist.js @@ -168,7 +168,7 @@ function downloadFile(formID){ at: new Date().toISOString(), ref: "TODO", url: document.location.protocol+"//"+document.location.host+document.location.pathname, - data: $("#"+id).serializeArray() + data: $("#"+formID).serializeArray() }; var filename = fileName+".checklist.json"; var blob = new Blob([JSON.stringify(obj)], {type: 'application/json'}); -- cgit v1.2.3