diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 86d65f4..7298dc7 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -830,6 +830,37 @@ 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 counterText(evt) { diff --git a/templates/blocks/profile/b_profile_first_page.html b/templates/blocks/profile/b_profile_first_page.html index c6cfe9f..788d74f 100644 --- a/templates/blocks/profile/b_profile_first_page.html +++ b/templates/blocks/profile/b_profile_first_page.html @@ -22,4 +22,4 @@ {#