27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
/**
|
|
* Please read the terms of the CLUF license attached to this module(cf "licences" folder)
|
|
*
|
|
* @author Línea Gráfica E.C.E. S.L.
|
|
* @copyright Lineagrafica.es - Línea Gráfica E.C.E. S.L. all rights reserved.
|
|
* @license https://www.lineagrafica.es/licenses/license_en.pdf
|
|
* https://www.lineagrafica.es/licenses/license_es.pdf
|
|
* https://www.lineagrafica.es/licenses/license_fr.pdf
|
|
*/
|
|
|
|
$(document).ready(function(){
|
|
$('.lgtabcontent').each(function(){
|
|
$(this).find('form').validate({
|
|
errorContainer: '.'+$(this).attr('id')+'-errors',
|
|
errorLabelContainer: '.lgcomment_validate_error_message ul',
|
|
wrapper: "li",
|
|
errorPlacement: function(error, element) {
|
|
error.appendTo(element.siblings('.lgcomment_validate_error_message'));
|
|
}
|
|
});
|
|
});
|
|
$('.lgcomment_validate_error_message button.close').on('click', function(e){
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
$(this).parent().hide();
|
|
});
|
|
}); |