aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/add-phenotypes-raw-files.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-01-06 13:13:03 -0600
committerFrederick Muriuki Muriithi2025-01-06 13:13:03 -0600
commitafa197ebd1bdd8c92aedc9c33a1cc653398c35bf (patch)
treeb188f1c8580b93401448342092dc16815ccc9147 /uploader/templates/phenotypes/add-phenotypes-raw-files.html
parent4aa6d2cba4128e75adfe9a91954aff1bd46ef7ae (diff)
downloadgn-uploader-afa197ebd1bdd8c92aedc9c33a1cc653398c35bf.tar.gz
Activate resumable UIs.HEADmain
Diffstat (limited to 'uploader/templates/phenotypes/add-phenotypes-raw-files.html')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 2264b59..568cf0b 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -628,12 +628,22 @@
return r;
};
+ resumables = [
+ ["frm-add-phenotypes", "finput-phenotype-descriptions", "resumable-phenotype-descriptions", "tbl-preview-pheno-desc"],
+ ["frm-add-phenotypes", "finput-phenotype-data", "resumable-phenotype-data", "tbl-preview-pheno-data"],
+ ["frm-add-phenotypes", "finput-phenotype-se", "resumable-phenotype-se", "tbl-preview-pheno-se"],
+ ["frm-add-phenotypes", "finput-phenotype-n", "resumable-phenotype-n", "tbl-preview-pheno-n"],
+ ].map((row) => {
+ return makeResumableObject(row[0], row[1], row[2], row[3]);
+ });
+
$("#frm-add-phenotypes input[type=submit]").on("click", (event) => {
event.preventDefault();
// TODO: Check all the relevant files exist
+ // TODO: Verify that files are not duplicated
// TODO: Check all fields
// Start the uploads.
- r.upload();
+ resumables.forEach((r) => {r.upload();});
});
</script>
{%endblock%}