aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-05-05 13:43:31 -0500
committerFrederick Muriuki Muriithi2025-05-05 16:20:10 -0500
commitdb018a349d812df6432cc73320e18f3db5e1dccd (patch)
treeed772fbb04c5d1bbce16325127c208bc017492c4
parentbe33b005da747058e5e133e7c1edbf8dbca12705 (diff)
downloadgn-uploader-db018a349d812df6432cc73320e18f3db5e1dccd.tar.gz
Require that the publication is present.
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index e6d6dca..1f7ec66 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -697,6 +697,11 @@
$("#frm-add-phenotypes input[type=submit]").on("click", (event) => {
event.preventDefault();
+ console.debug();
+ if ($("#txt-publication-id").val() == "") {
+ alert("You MUST provide a publication for the phenotypes.");
+ return false;
+ }
// TODO: Check all the relevant files exist
// TODO: Verify that files are not duplicated
var filenames = [];