From 233ad780df391ed4af569929c30a1370d2b440ef Mon Sep 17 00:00:00 2001
From: xue <>
Date: Sat, 10 Jun 2006 14:58:25 +0000
Subject: Merge from 3.0 branch till 1150. Fixed the bug that postback js
causes controls not inheritable.
---
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