Skip to content

Commit

Permalink
Remove JQuery script
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Jun 18, 2021
1 parent 3814348 commit 8c5a14f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions blossom/templates/website/generic_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
{% load string_helpers %}

{% block content %}
{% comment %}
TODO: Rip jQuery out of this form
This has just enough jquery in it to be irritating, but it's the only
page that actually requires it. Since this is the only one, we'll
import jquery here and hopefully nuke it one of these days when someone
better at JS than me comes and looks at it.
{% endcomment %}
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
<div class="container mt-4">
{% if slim_form %}
<div class="row">
Expand Down Expand Up @@ -160,7 +149,6 @@ <h4>{{ subheader }}</h4>
const errorList = errorLists[0];

const showAllErrorMessages = function () {
console.debug("Showing error messages")
errorList.innerHTML = "";

// Find all invalid fields within the form.
Expand Down Expand Up @@ -193,7 +181,6 @@ <h4>{{ subheader }}</h4>

// Support Safari
form.addEventListener("submit", function (event) {
console.debug(`Submit event`);
if (this.checkValidity && !this.checkValidity()) {
const firstInvalid = form.querySelector(":invalid");
if (firstInvalid) {
Expand Down

0 comments on commit 8c5a14f

Please sign in to comment.