Skip to content

Commit

Permalink
try using template literals?
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 29, 2024
1 parent 2003632 commit 72e1f4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/js/extending.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,14 +684,15 @@ $(document).on('click', '.actionPromptButton', ev => {
if( existingFestivityTag !== '' ) {
rowStr = FormControls.CreatePatronRow( existingFestivityTag );
console.log(rowStr);
$row = $( rowStr );
$row = $( `${rowStr}` );
console.log($row);
if( FormControls.settings.missalField ) {
const { MISSAL } = FestivityCollection[existingFestivityTag];
$row.find(`#onTheFly${currentUniqid}Missal`).val(MISSAL); //.prop('disabled', true);
}
} else {
$row = $(FormControls.CreatePatronRow());
rowStr = FormControls.CreatePatronRow();
$row = $( `${rowStr}` );
}
$('.regionalNationalDataForm').append($row);
$modal.modal('hide');
Expand Down

0 comments on commit 72e1f4c

Please sign in to comment.