Skip to content

Commit

Permalink
update form submission to use new endpoint (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyandy authored Aug 6, 2024
1 parent 1ebb702 commit 2b95f13
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ $(function() {
});
if (valid)
$.ajax({
url : 'https://oceansMap2.asascience.com/?SiteID=1&Name=' + $('#feedback-name').val() + '&Email=' + $('#feedback-email').val() + '&Comment=' + $('#feedback-comment').val(),
type : 'POST',
url: 'https://ioos.us/api/feedback',
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
website: 'https://ioos.us',
body: $('#feedback-comment').val(),
name: $('#feedback-name').val(),
email: $('#feedback-email').val()
}),
success: function (data) {
alert('Feedback Submitted');
$('#feedbackForm').modal('hide');
Expand Down

0 comments on commit 2b95f13

Please sign in to comment.