X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/84f4d19441dd0a757010a623b50cfe1b0c553f3b..3cc75c9973fbeb7bc99ddb7befa6f5199d3680d1:/lib/MECON/HTML/QuickForm.php diff --git a/lib/MECON/HTML/QuickForm.php b/lib/MECON/HTML/QuickForm.php index 7258df1..0f9c35e 100644 --- a/lib/MECON/HTML/QuickForm.php +++ b/lib/MECON/HTML/QuickForm.php @@ -1,31 +1,28 @@ - | -// +--------------------------------------------------------------------+ -// -// $Id$ -// + +------------------------------------------------------------------------------- +$Id$ +-----------------------------------------------------------------------------*/ require_once 'HTML/QuickForm.php'; require_once 'MECON/HTML/QuickForm/Renderer/Tabla.php'; @@ -41,6 +38,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) { @@ -66,4 +64,4 @@ class MECON_HTML_QuickForm extends HTML_QuickForm { } } -?> +?> \ No newline at end of file