From c53808ba452e273558b0f3086bdd9f7c2a5621a4 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Fri, 1 Nov 2024 15:23:11 -0400 Subject: [PATCH] Fix JS error on merch checklist item Select2Autocomplete inserts an extra field, which is marked required and which my JS was not marking un-required. This was causing the merch page to not save for anyone who wanted to be paid by PayPal. This should fix that. --- uber/templates/guest_checklist/merch_deadline.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uber/templates/guest_checklist/merch_deadline.html b/uber/templates/guest_checklist/merch_deadline.html index 77b21ddcc..a8f430fac 100644 --- a/uber/templates/guest_checklist/merch_deadline.html +++ b/uber/templates/guest_checklist/merch_deadline.html @@ -316,6 +316,8 @@

Extra Info

$.field('check_{{ field_name }}').prop('required', $.val('payout_method') == "{{ c.CHECK }}"); $("label[for='check_{{ field_name }}']").toggleClass('optional-field', $.val('payout_method') != "{{ c.CHECK }}"); {% endfor %} + // I STILL hate Select2Autocomplete + $.field('check_country').next().prop('required', $.val('payout_method') == "{{ c.CHECK }}"); } var showOrHideRockIsland = function() {