X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/84f4d19441dd0a757010a623b50cfe1b0c553f3b..6633d763d3bc4797857a2b62ccad3a90f765da9f:/lib/MECON/HTML/QuickForm.php diff --git a/lib/MECON/HTML/QuickForm.php b/lib/MECON/HTML/QuickForm.php index 7258df1..1c7763d 100644 --- a/lib/MECON/HTML/QuickForm.php +++ b/lib/MECON/HTML/QuickForm.php @@ -41,6 +41,7 @@ class MECON_HTML_QuickForm extends HTML_QuickForm { $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'HTML_QuickForm_mdate'); $this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate'); $this->setRequiredNote('* indica un campo obligatorio'); + $this->setJsWarnings('Hay errores en el formulario:', 'Por favor corríjalos antes de continuar.'); } function addRule($element, $message, $type, $format='', $validation='client', $reset = false, $force = false) {