From 2da825c6f1dd3726bcc866082f6d28dcc29a0c5a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 10 Jun 2006 12:39:49 +0000 Subject: Fixed #182. --- framework/Web/UI/WebControls/TCompareValidator.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TCompareValidator.php') diff --git a/framework/Web/UI/WebControls/TCompareValidator.php b/framework/Web/UI/WebControls/TCompareValidator.php index b5ebd3ab..93664b2e 100644 --- a/framework/Web/UI/WebControls/TCompareValidator.php +++ b/framework/Web/UI/WebControls/TCompareValidator.php @@ -31,8 +31,8 @@ Prado::using('System.Web.UI.WebControls.TBaseValidator'); * type before the comparison operation is performed. The following value types are supported: * - Integer A 32-bit signed integer data type. * - Float A double-precision floating point number data type. - * - Date A date data type. The format can be specified by the - * {@link setDateFormat DateFormat} property + * - Date A date data type. The format can be specified by the + * {@link setDateFormat DateFormat} property * - String A string data type. * * Use the {@link setOperator Operator} property to specify the type of comparison @@ -46,6 +46,16 @@ Prado::using('System.Web.UI.WebControls.TBaseValidator'); */ class TCompareValidator extends TBaseValidator { + /** + * Gets the name of the javascript class responsible for performing validation for this control. + * This method overrides the parent implementation. + * @return string the javascript class name + */ + protected function getClientClassName() + { + return 'Prado.WebUI.TCompareValidator'; + } + /** * @return string the data type that the values being compared are converted to before the comparison is made. Defaults to String. */ -- cgit v1.2.3