diff --git a/public/js/main.js b/public/js/main.js index 00f20d8..4cb33f3 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -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');