From 6bcace219222d64930a3ce1e80988719fe52b22e Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Thu, 23 May 2024 13:12:48 +0200 Subject: [PATCH] Add min 2 character requirement for name to new task modal [SCI-10686] --- app/assets/javascripts/experiments/show.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/experiments/show.js b/app/assets/javascripts/experiments/show.js index b7d438aaa..56f152720 100644 --- a/app/assets/javascripts/experiments/show.js +++ b/app/assets/javascripts/experiments/show.js @@ -30,7 +30,7 @@ // listen for input event on the my_module_name input field $(`${newMyModuleModal} #my_module_name`).on('input', function () { - if ($(this).val().trim() !== '') { + if ($(this).val().trim().length > 1) { // enable the submit button if the input field is populated $('#new-modal-submit-btn').prop('disabled', false); } else {