Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-10-03 13:21:58 +0300
committervjeantet <valere.jeantet@gmail.com>2020-10-03 13:21:58 +0300
commit62a661b7b59e175f855b77e9d4d01428500c68f6 (patch)
treefa53aaa4b0a6c5e6cbc8a86659d09c9e42bf953b
parent46dd39d9e7723ec3a485b31d13e80fa8bc00e41e (diff)
checklist : fix download
-rw-r--r--static/js/checklist.js2
1 files changed, 1 insertions, 1 deletions
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'});