diff --git a/static/css/styles.css b/static/css/styles.css index ec24906..7346f55 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -2400,6 +2400,12 @@ button#send_feedback_form:active{ #error_feedback_text.hide{ display: none; } +#error_footer.hide{ + display: none; +} +#error_com_offer.hide{ + display: none; +} .subscribes_container{ width: 80%; diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 66cac53..ae9b4f2 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -947,15 +947,20 @@ function hideErrors(el) { let error_feeedback_text = document.getElementById('error_feedback_text') let error_feeedback = el.nextElementSibling let counter_text = document.querySelector('.counter-text') + let footer_button = document.getElementById('footer_input_button') + let error_footer = document.getElementById('error_footer') if(error_feeedback === counter_text ){ error_feeedback_text.classList.add('hide') - }else { + } else if(error_feeedback === footer_button ){ + error_footer.classList.add('hide') + } + + else { error_feeedback.classList.add('hide') } - el.form[3].offsetParent.nextElementSibling diff --git a/templates/forms/f_commercial_offer.html b/templates/forms/f_commercial_offer.html index 08893c6..1c97a0a 100644 --- a/templates/forms/f_commercial_offer.html +++ b/templates/forms/f_commercial_offer.html @@ -10,19 +10,25 @@ >