Skip to content
Snippets Groups Projects
Commit b0f49c79 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Checking the fields selector array length in a better way

parent a6e031fe
No related branches found
No related tags found
1 merge request!212Checking the fields selector array length in a better way
Pipeline #6740 failed with stage
in 1 hour
...@@ -672,7 +672,7 @@ function listenToInputChangeOnResourceCreation(originalForm) { ...@@ -672,7 +672,7 @@ function listenToInputChangeOnResourceCreation(originalForm) {
} }
}); });
if (isValid.length == 13) { if (isValid.length == resourcesFieldsSelector.length) {
submitInput.disabled = false; submitInput.disabled = false;
submitInput.classList.remove('disabled'); submitInput.classList.remove('disabled');
} else { } else {
...@@ -691,7 +691,7 @@ function listenToInputChangeOnMentorAccountCompletion(originalForm) { ...@@ -691,7 +691,7 @@ function listenToInputChangeOnMentorAccountCompletion(originalForm) {
} }
}); });
if (isValid.length == 6) { if (isValid.length == mentorFieldsSelector.length) {
submitInput.disabled = false; submitInput.disabled = false;
submitInput.classList.remove('disabled'); submitInput.classList.remove('disabled');
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment