From 2f95dc2a358f0ce0077f721947fc182402bf2a6d Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 24 Dec 2015 20:14:05 -0500 Subject: [PATCH] test --- js/form-handling.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/form-handling.js b/js/form-handling.js index 8a8bb11..f98c69b 100644 --- a/js/form-handling.js +++ b/js/form-handling.js @@ -8,15 +8,13 @@ $contactForm.submit(function(e) { data: $(this).serialize(), dataType: 'json', beforeSend: function() { - $contactForm.append('
Sending messageā€¦
'); + console.log("Sending."); }, success: function(data) { - $contactForm.find('.alert--loading').hide(); - $contactForm.append('
Message sent!
'); + console.log("Sent."); }, error: function(err) { - $contactForm.find('.alert--loading').hide(); - $contactForm.append('
Ops, there was an error.
'); + console.log("Failed."); } }); }); \ No newline at end of file