aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 568cf0b..ccdbde5 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -577,6 +577,7 @@
var uploadError = () => {
return (message, file) => {
+ $("#frm-add-phenotypes input[type=submit]").attr("disabled")
console.log("THE FILE:", file);
console.log("THE ERROR MESSAGE:", message);
};
@@ -643,6 +644,7 @@
// TODO: Verify that files are not duplicated
// TODO: Check all fields
// Start the uploads.
+ event.target.setAttribute("disabled", "disabled");
resumables.forEach((r) => {r.upload();});
});
</script>