|
|
|
@ -131,7 +131,7 @@ function handleConsultationForm(formElement) { |
|
|
|
|
.then(response => response.json()) |
|
|
|
|
.then(data => { |
|
|
|
|
if (data.success) { |
|
|
|
|
window.location.href = '/spasibo-footer/'; |
|
|
|
|
window.location.href = '/spasibo_blue/'; |
|
|
|
|
formElement.reset(); |
|
|
|
|
} else { |
|
|
|
|
showCartToast("Ошибка при отправке заявки", 3000, 'error'); |
|
|
|
@ -154,7 +154,7 @@ function handleForm(formElement) { |
|
|
|
|
const formData = new FormData(formElement); |
|
|
|
|
const submitButton = formElement.querySelector('.button'); |
|
|
|
|
const url='/local/ajax/form.php'; |
|
|
|
|
const redurect_url='/spasibo-tovary/'; |
|
|
|
|
const redurect_url='/spasibo-footer/'; |
|
|
|
|
if (submitButton) { |
|
|
|
|
submitButton.disabled = true; |
|
|
|
|
submitButton.classList.add('is-loading'); |
|
|
|
|