| Línea 65... |
Línea 65... |
| 65 |
},
|
65 |
},
|
| 66 |
errorElement: 'span',
|
66 |
errorElement: 'span',
|
| 67 |
errorClass: 'error invalid-feedback',
|
67 |
errorClass: 'error invalid-feedback',
|
| 68 |
errorPlacement: function(error, element) {
|
68 |
errorPlacement: function(error, element) {
|
| 69 |
const child = element.children(':first-child');
|
69 |
const child = element.children(':first-child');
|
| 70 |
console.log('>>: is name > ', element.attr('id', 'name'));
|
- |
|
| 71 |
console.log('>>: element > ', element[0].localName)
|
- |
|
| 72 |
console.log('>>: field > validator > 1', element, element.parent(), child);
|
- |
|
| 73 |
if(element[0].localName == 'input'){
|
70 |
if(element[0].localName == 'input'){
|
| - |
|
71 |
console.log('>>: in condition > ', error);
|
| 74 |
error.insertBefore(element);
|
72 |
error.insertBefore(element);
|
| 75 |
}
|
73 |
}
|
| 76 |
else if(element.parent('.form-group').length) {
|
74 |
else if(element.parent('.form-group').length) {
|
| 77 |
console.log('>>: field > validator > is form group', element, element.parent());
|
- |
|
| 78 |
error.insertAfter(element);
|
75 |
error.insertAfter(element);
|
| 79 |
} else if(element.parent('.toggle').length) {
|
76 |
} else if(element.parent('.toggle').length) {
|
| 80 |
error.insertAfter(element.parent().parent());
|
77 |
error.insertAfter(element.parent().parent());
|
| 81 |
} else {
|
78 |
} else {
|
| 82 |
console.log('>>: field > validator > is not form group', element, element.parent());
|
79 |
console.log('>>: field > validator > is not form group', element, element.parent());
|