mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 00:51:25 -05:00
Tweak comment explaining the error class application in the traditional bootstrap contact and subscription form javascript
This commit is contained in:
parent
758672024c
commit
25f65772d5
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue