Skip to content

Commit

Permalink
no need to stringify twice
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Jun 16, 2024
1 parent 2d02f1f commit e718142
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js/extending.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,10 @@ $(document).on('change', '.litEvent', ev => {
});

$(document).on('click', '#saveDiocesanCalendar_btn', () => {
$data = JSON.stringify($CALENDAR);
$nation = $('#diocesanCalendarNationalDependency').val();
$diocese = $('#diocesanCalendarDioceseName').val();
//console.log('save button was clicked for NATION = ' + $nation + ', DIOCESE = ' + $diocese);
let saveObj = { LitCal: $data, Diocese: $diocese, Nation: $nation, category: 'diocesanCalendar' };
let saveObj = { LitCal: $CALENDAR, Diocese: $diocese, Nation: $nation, category: 'diocesanCalendar' };
if($('#diocesanCalendarGroup').val() != ''){
saveObj.group = $('#diocesanCalendarGroup').val();
}
Expand Down

0 comments on commit e718142

Please sign in to comment.