0.0.276
This commit is contained in:
@@ -832,36 +832,38 @@ function RequestCommercialOffer (el){
|
||||
});
|
||||
}
|
||||
|
||||
// function SendFeedbackForm (el){
|
||||
//
|
||||
// event.preventDefault()
|
||||
// let form = el.form;
|
||||
// let formData = new FormData(form);
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
// $.ajax({
|
||||
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
// url: '/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
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
function SendFeedbackForm (el){
|
||||
|
||||
event.preventDefault()
|
||||
let form = el.form;
|
||||
let formData = new FormData(form);
|
||||
let form_name = form.dataset['name']
|
||||
formData.set('form_name',form_name)
|
||||
|
||||
|
||||
|
||||
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
// url: '/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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user