Skip to content

Commit

Permalink
Invio al submit
Browse files Browse the repository at this point in the history
  • Loading branch information
achillecalegari committed May 23, 2016
1 parent 8dc4d81 commit b199106
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/js/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
$form = $modal.find('.request-form');
$fields = $form.find('input, textarea');
sessionDataCallback = callback;

function sendMail() {
$.ajax({
$.ajax({
type: 'POST',
url: 'https://mandrillapp.com/api/1.0/messages/send.json',
data: {
Expand All @@ -50,7 +48,6 @@
}).done(function(response) {
console.log(response); // if you're into that sorta thing
});
}

$form.submit(submit);
$modal.find('.request-submit').click(function() {
Expand Down

0 comments on commit b199106

Please sign in to comment.