Skip to content

Commit

Permalink
Fix JS error on merch checklist item
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kitsuta committed Nov 1, 2024
1 parent 5ab9a3f commit c53808b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uber/templates/guest_checklist/merch_deadline.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ <h3>Extra Info</h3>
$.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() {
Expand Down

0 comments on commit c53808b

Please sign in to comment.