Skip to content

Commit

Permalink
define $modal and $form
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 29, 2024
1 parent 5e2beec commit 770728b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/extending.js
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ $(document).on('change', '.existingFestivityName', ev => {
console.log( ev.currentTarget );
console.log( $(ev.currentTarget).closest('.actionPromptModal') );
console.log( $(ev.target).closest('.actionPromptModal') );
$modal = $(ev.currentTarget).closest('.actionPromptModal');
$form = $modal.find('form');
const $modal = $(ev.currentTarget).closest('.actionPromptModal');
const $form = $modal.find('form');
$form.each((idx, el) => { $(el).removeClass('was-validated') });
let disabledState;
if ($('#existingFestivitiesList').find('option[value="' + $(ev.currentTarget).val() + '"]').length > 0) {
Expand Down

0 comments on commit 770728b

Please sign in to comment.