|
|
|
@ -55,14 +55,13 @@ $(function()
|
|
|
|
|
$btn.text('Sending ...');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#error_message').hide();
|
|
|
|
|
|
|
|
|
|
//todo fetch error here
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/contact-form/handler.php',
|
|
|
|
|
data: $form.serialize(),
|
|
|
|
|
success: after_form_submitted,
|
|
|
|
|
error: submit_error(null),
|
|
|
|
|
dataType: 'json'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|