<script>
$('#modal_form1').submit(function(){
var form = $(this);
var data = form.serialize();
form.find('input[type="submit"]').attr('disabled', 'disabled');
$.ajax({
type: "POST",
url: "mailer/smart3.php",
data: data
}).done(function() {
form.find("input").val("");
$('#callModal1').modal('hide');
window.location = "https://ufimbankrot.ru/thanks.html";
$("#modal_form1").trigger("reset");
ga('send', 'event', 'myform', 'submit');
ga('send', 'event', 'buttonOrder', 'click');
});
return false;
});
</script>