0.0.104
This commit is contained in:
@@ -480,6 +480,10 @@ body.n_scroll{
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.container_input{
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.input_form_feedback{
|
||||
border: none;
|
||||
border-bottom: 1px solid #E3E3E3;
|
||||
@@ -491,7 +495,6 @@ body.n_scroll{
|
||||
outline: none;
|
||||
padding-bottom: 5px;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.input_form_feedback.error{
|
||||
@@ -571,7 +574,7 @@ body.n_scroll{
|
||||
}
|
||||
|
||||
.check_box_form_feedback{
|
||||
border: 1px solid #9a9a9a;
|
||||
border: 1px solid #000000;
|
||||
background: none;
|
||||
display: inline-block;
|
||||
width: 15px;
|
||||
@@ -579,6 +582,9 @@ body.n_scroll{
|
||||
outline: none;
|
||||
margin: 6px 0;
|
||||
}
|
||||
.check_box_form_feedback.error{
|
||||
border: 1px solid #FF3F20;
|
||||
}
|
||||
|
||||
.label_feedback_form_checkbox{
|
||||
font-size: 12px;
|
||||
@@ -587,6 +593,9 @@ body.n_scroll{
|
||||
width: 90%;
|
||||
float: right;
|
||||
}
|
||||
.label_feedback_form_checkbox.error{
|
||||
color: #FF3F20;
|
||||
}
|
||||
|
||||
/* block plugin*/
|
||||
|
||||
@@ -1221,4 +1230,16 @@ body.n_scroll{
|
||||
border: 1px solid #E3E3E3;
|
||||
background: #FFF;
|
||||
box-shadow: 1px 1px 2px 0 rgba(151, 167, 176, 0.20);
|
||||
}
|
||||
}
|
||||
|
||||
/* errors */
|
||||
.error_input_html{
|
||||
color: #FF3F20;
|
||||
padding: 10px 0 0 0;
|
||||
}
|
||||
|
||||
.error_input_html ul,li{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@@ -253,7 +253,29 @@ function sendFormfeedback (el){
|
||||
document.querySelector(".container_content_form_feedback").innerHTML = data.html
|
||||
},
|
||||
error: function (data){
|
||||
document.querySelector(".container_content_form_feedback").innerHTML = data.responseJSON.html
|
||||
document.querySelector(".form_feedback_content").innerHTML = data.responseJSON.left_form_html
|
||||
document.querySelector(".checkbox_container").innerHTML = data.responseJSON.right_form_html
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deleteErrorsInput (el) {
|
||||
let parent = el.parentNode
|
||||
let errors_container = parent.querySelector(".error_input_html")
|
||||
if (errors_container){
|
||||
let input = parent.querySelector(".input_form_feedback")
|
||||
let checkbox_label = parent.querySelector(".label_feedback_form_checkbox")
|
||||
if (input){
|
||||
input.classList.remove('error')
|
||||
} else if (checkbox_label){
|
||||
checkbox_label.classList.remove("error")
|
||||
} else {
|
||||
let textarea = document.querySelector(".textarea_form_feedback")
|
||||
textarea.classList.remove("error")
|
||||
}
|
||||
|
||||
let str = errors_container.outerHTML
|
||||
str = str.replace(str,'')
|
||||
errors_container.outerHTML = str
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user