From: Gonzalo Merayo Date: Wed, 2 Jul 2003 23:03:07 +0000 (+0000) Subject: Se traducen los warnings de javascript. X-Git-Tag: svn_import~406 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/4755255f8b34acfaeec40cadbe2a04f2dc5570fe Se traducen los warnings de javascript. --- 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) {