diff --git a/js/init.js b/js/init.js index ac1cd27..5588523 100644 --- a/js/init.js +++ b/js/init.js @@ -137,44 +137,44 @@ /* contact form ------------------------------------------------------*/ - $('form#contactForm button.submit').click(function() { - - $('#image-loader').fadeIn(); - - var contactName = $('#contactForm #contactName').val(); - var contactEmail = $('#contactForm #contactEmail').val(); - var contactSubject = $('#contactForm #contactSubject').val(); - var contactMessage = $('#contactForm #contactMessage').val(); - - var data = 'contactName=' + contactName + '&contactEmail=' + contactEmail + - '&contactSubject=' + contactSubject + '&contactMessage=' + contactMessage; - - $.ajax({ - - type: "POST", - url: "inc/sendEmail.php", - data: data, - success: function(msg) { - - // Message was sent - if (msg == 'OK') { - $('#image-loader').fadeOut(); - $('#message-warning').hide(); - $('#contactForm').fadeOut(); - $('#message-success').fadeIn(); - } - // There was an error - else { - $('#image-loader').fadeOut(); - $('#message-warning').html(msg); - $('#message-warning').fadeIn(); - } - - } - - }); - return false; - }); + // $('form#contactForm button.submit').click(function() { + + // $('#image-loader').fadeIn(); + + // var contactName = $('#contactForm #contactName').val(); + // var contactEmail = $('#contactForm #contactEmail').val(); + // var contactSubject = $('#contactForm #contactSubject').val(); + // var contactMessage = $('#contactForm #contactMessage').val(); + + // var data = 'contactName=' + contactName + '&contactEmail=' + contactEmail + + // '&contactSubject=' + contactSubject + '&contactMessage=' + contactMessage; + + // $.ajax({ + + // type: "POST", + // url: "inc/sendEmail.php", + // data: data, + // success: function(msg) { + + // // Message was sent + // if (msg == 'OK') { + // $('#image-loader').fadeOut(); + // $('#message-warning').hide(); + // $('#contactForm').fadeOut(); + // $('#message-success').fadeIn(); + // } + // // There was an error + // else { + // $('#image-loader').fadeOut(); + // $('#message-warning').html(msg); + // $('#message-warning').fadeIn(); + // } + + // } + + // }); + // return false; + // }); });