Files
bio-concept-pharma/web/modules/lgcomments/views/js/jquery.validate-nonempty.js
2019-11-17 19:14:07 +01:00

13 lines
577 B
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
*/
$.validator.addMethod( "nonempty", function( value, element ) {
return value.trim() != '';
}, "The value could not be empty or only espaces" );