diff options
| author | Frederick Muriuki Muriithi | 2025-05-05 13:43:31 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-05-05 16:20:10 -0500 |
| commit | db018a349d812df6432cc73320e18f3db5e1dccd (patch) | |
| tree | ed772fbb04c5d1bbce16325127c208bc017492c4 | |
| parent | be33b005da747058e5e133e7c1edbf8dbca12705 (diff) | |
| download | gn-uploader-db018a349d812df6432cc73320e18f3db5e1dccd.tar.gz | |
Require that the publication is present.
| -rw-r--r-- | uploader/templates/phenotypes/add-phenotypes-raw-files.html | 5 |
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 = []; |
