From 689495e4100ba770902f73fb7b4602302b8569a3 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Fri, 1 Dec 2023 12:10:17 +0300 Subject: [PATCH] 0.0.290 --- static/js/user_profile.js | 23 +++++++++++++++-------- templates/forms/f_commercial_offer.html | 1 + 2 files changed, 16 insertions(+), 8 deletions(-) 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 %}