0.0.296 remove errors after typing in fields
This commit is contained in:
@@ -925,6 +925,10 @@
|
||||
button#send_feedback_form{
|
||||
width: 100%;
|
||||
}
|
||||
button#send_feedback_form:active{
|
||||
box-shadow:unset;
|
||||
background: rgba(255, 97, 58, 0.60);
|
||||
}
|
||||
/* END feedback_form*/
|
||||
|
||||
/* news_page*/
|
||||
|
||||
@@ -1924,7 +1924,7 @@ button#edit_route {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#error_com_offer, #error_feedback{
|
||||
#error_com_offer, #error_feedback, #error_feedback_text{
|
||||
color: #ff0000;
|
||||
font-size: 14px;
|
||||
margin-left: 5px;
|
||||
@@ -1940,7 +1940,7 @@ button#edit_route {
|
||||
}
|
||||
|
||||
.form_wrapper{
|
||||
position: relative;
|
||||
margin-top: 120px;
|
||||
}
|
||||
|
||||
.form_com_wrapper{
|
||||
@@ -2389,6 +2389,17 @@ button#send_feedback_form{
|
||||
width: 103%;
|
||||
margin-top: 13px;
|
||||
}
|
||||
button#send_feedback_form:active{
|
||||
box-shadow:unset;
|
||||
background: rgba(255, 97, 58, 0.60);
|
||||
}
|
||||
#error_feedback.hide{
|
||||
display: none;
|
||||
}
|
||||
|
||||
#error_feedback_text.hide{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.subscribes_container{
|
||||
width: 80%;
|
||||
|
||||
@@ -913,6 +913,8 @@ function RequestCommercialOffer (el){
|
||||
let feedback_form = document.querySelector('.feedback_form')
|
||||
if(feedback_form){
|
||||
feedback_form.innerHTML = data.responseJSON.html;
|
||||
// let incorrect_block = document.querySelectorAll('.inputs_l')
|
||||
|
||||
}
|
||||
|
||||
let commercial_offer = document.querySelector('.commercial_offer')
|
||||
@@ -939,6 +941,31 @@ function RequestCommercialOffer (el){
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
function hideErrors(el) {
|
||||
let error_feeedback_text = document.getElementById('error_feedback_text')
|
||||
let error_feeedback = el.nextElementSibling
|
||||
let counter_text = document.querySelector('.counter-text')
|
||||
|
||||
|
||||
if(error_feeedback === counter_text ){
|
||||
error_feeedback_text.classList.add('hide')
|
||||
}else {
|
||||
error_feeedback.classList.add('hide')
|
||||
}
|
||||
|
||||
el.form[3].offsetParent.nextElementSibling
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// if(el.nextElementSibling === errorFeeedback){
|
||||
// errorFeeedback.classList.add('hide')
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
// function SendFeedbackForm (el){
|
||||
|
||||
Reference in New Issue
Block a user