Tweak comment explaining the error class application in the traditional bootstrap contact and subscription form javascript

This commit is contained in:
Kevin MacMartin 2018-04-25 22:47:50 -04:00
parent 758672024c
commit 25f65772d5
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ function contactFormInit() {
} else {
errors = 0;
// add the error class to fields that haven't been filled out
// add the error class to fields that haven't been filled correctly
for (let errorName in response.responseJSON.errors) {
if ($form.find(`[name='${errorName}']`).length) {
$form.find(`[name='${errorName}']`).addClass("error");

View file

@ -46,7 +46,7 @@ function subscriptionFormInit() {
} else {
errors = 0;
// add the error class to fields that haven't been filled out
// add the error class to fields that haven't been filled correctly
for (let errorName in response.responseJSON.errors) {
if ($form.find(`[name='${errorName}']`).length) {
$form.find(`[name='${errorName}']`).addClass("error");