Add min 2 character requirement for name to new task modal [SCI-10686]

This commit is contained in:
Martin Artnik 2024-05-23 13:12:48 +02:00
parent f4003f9962
commit 6bcace2192

View file

@ -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 {