From 1e404d62076baae4a7de1d1cea47976a0ebfa924 Mon Sep 17 00:00:00 2001 From: Joshua Orvis Date: Sat, 13 Jan 2024 22:30:30 -0600 Subject: [PATCH] Form validation now shows toast messages vs javascript alerts --- www/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/index.js b/www/js/index.js index eb881dc5..97831a56 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -374,13 +374,13 @@ const validateExpressionSearchForm = () => { // User must have either selected a gene list or entered genes manually. Either of these // will populate the selected_genes array if (selected_genes.length === 0) { - alert('Please enter at least one gene to proceed'); + createToast('Please enter at least one gene to proceed'); return false; } // Check if the user has selected any dataset collections if (selected_dc_share_id === null) { - alert('Please select at least one dataset to proceed'); + createToast('Please select at least one dataset to proceed'); return false; }