dashinja/recipeciprocity

Submission Page - JS Refactor

Closed this issue · 0 comments

Admin Story

As an admin, I want to have no errors due to JS validation on pages without forms to validate, so that I can be sure the website's JS will run cleanly in all places.

Acceptance Criteria

  • Make a folder called validation in the javaScript assets folder
  • Make a form-validation.js file in the new validation folder
  • Change the script reference in submissions.html reflect the ```./assets/javaScript/form-validation/form-validation.js
  • Copy into that file only JS necessary to make that page work
  • All pages work as expected, with no surprises
  • The following error does not appear in the console of the index.html nor the recipes.html page:
    "app.js:107 Uncaught TypeError: $.validate is not a function at app.js:107"