From db018a349d812df6432cc73320e18f3db5e1dccd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 May 2025 13:43:31 -0500 Subject: Require that the publication is present. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 5 +++++ 1 file changed, 5 insertions(+) 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 = []; -- cgit v1.2.3