mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-15 09:34:29 +08:00
Add min 2 character requirement for name to new task modal [SCI-10686]
This commit is contained in:
parent
f4003f9962
commit
6bcace2192
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue