0.0.122 upd static_page advertisement

This commit is contained in:
2023-09-01 15:25:48 +03:00
parent 770289f1ae
commit 227aba33ee
3 changed files with 103 additions and 2 deletions

View File

@@ -619,6 +619,37 @@ function checkDate() {
}
function RequestCommercialOffer (el){
event.preventDefault()
let form = el.form;
let formData = new FormData(form);
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/user_account/request_offer/',
type: "POST",
// async: true,
cache: false,
processData: false,
contentType: false,
// enctype: 'json',
data: formData,
success: function(data){
// location.href = '/profile'
},
error: function (data, exception){
// document.querySelector(".login").innerHTML = data.responseJSON.html
}
});
}