From 875efd1707a2ac5307b24181ddd7e0420bff5854 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 2 Jul 2006 05:50:29 +0000 Subject: fixed 3.02 bug --- framework/Web/UI/WebControls/TBaseValidator.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'framework/Web/UI/WebControls/TBaseValidator.php') diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index 3b2f0ec6..5917f313 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -646,6 +646,23 @@ class TValidatorClientScript extends TComponent return $this->_options->itemAt('OnError'); } + /** + * @param boolean true to revalidate when the control to validate changes value. + */ + public function setObserveChanges($value) + { + $this->_options->add('ObserveChanges', TPropertyValue::ensureBoolean($value)); + } + + /** + * @return boolean true to observe changes. + */ + public function getObserveChanges() + { + $changes = $this->_options->itemAt('ObserveChanges'); + return is_null($changes) ? true : $changes; + } + /** * @return array list of client-side event code. */ @@ -653,6 +670,7 @@ class TValidatorClientScript extends TComponent { return $this->_options->toArray(); } + /** * Ensure the string is a valid javascript function. If the string begins -- cgit v1.2.3