From 25f65772d5aa8a89e1b61c928feaae496342ad7d Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 25 Apr 2018 22:47:50 -0400 Subject: [PATCH] Tweak comment explaining the error class application in the traditional bootstrap contact and subscription form javascript --- traditional-bootstrap/resources/assets/js/contact.js | 2 +- traditional-bootstrap/resources/assets/js/subscription.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/traditional-bootstrap/resources/assets/js/contact.js b/traditional-bootstrap/resources/assets/js/contact.js index 8e1452d..3b1069b 100644 --- a/traditional-bootstrap/resources/assets/js/contact.js +++ b/traditional-bootstrap/resources/assets/js/contact.js @@ -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"); diff --git a/traditional-bootstrap/resources/assets/js/subscription.js b/traditional-bootstrap/resources/assets/js/subscription.js index 0ca0f6a..2dbc7d0 100644 --- a/traditional-bootstrap/resources/assets/js/subscription.js +++ b/traditional-bootstrap/resources/assets/js/subscription.js @@ -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");