diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 2d7ad53..c99ef2a 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -867,18 +867,25 @@ function RequestCommercialOffer (el){ $(data.html).insertBefore(insert_text_2) } - - } - - - - - - }, error: function (data, exception){ // document.querySelector(".login").innerHTML = data.responseJSON.html + + let feedback_form = document.querySelector('.feedback_form') + if(feedback_form){ + feedback_form.innerHTML = data.html; + } + + let commercial_offer = document.querySelector('.commercial_offer') + if(commercial_offer){ + commercial_offer.innerHTML = data.html; + } + + + document.querySelector(".info_profile").innerHTML = data.html; + + } }); diff --git a/templates/forms/f_commercial_offer.html b/templates/forms/f_commercial_offer.html index 5ade0ca..17065f1 100644 --- a/templates/forms/f_commercial_offer.html +++ b/templates/forms/f_commercial_offer.html @@ -2,6 +2,7 @@ {% load i18n %}