From bde6488e19b9852011a657fda8aa39680d9c4a62 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 6 Jan 2007 00:00:57 +0000 Subject: Update docs. --- .../Web/UI/ActiveControls/TCallbackClientSide.php | 21 +++++++++------------ .../Web/UI/WebControls/TRequiredFieldValidator.php | 2 +- 2 files changed, 10 insertions(+), 13 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/ActiveControls/TCallbackClientSide.php b/framework/Web/UI/ActiveControls/TCallbackClientSide.php index ff347659..1c354c3e 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientSide.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientSide.php @@ -23,24 +23,21 @@ * - onInteractive executed when callback request is in progress. * - onCompleteexecuted when callback response returns. * - * The OnSuccess and OnFailure events are raised when the + * The OnSuccess and OnFailure events are raised when the * response is returned. A successful request/response will raise - * OnSuccess event otherwise OnFailure will be raised. + * OnSuccess event otherwise OnFailure will be raised. * * - onSuccess executed when callback request returns and is successful. * - onFailure executed when callback request returns and fails. - * - onException raised when callback request fails due to - * request/response errors. + * - onException raised when callback request fails due to request/response errors. * - * - PostInputs true to collect the form inputs and post them during - * callback, default is true. + * - PostInputs true to collect the form inputs and post them during callback, default is true. * - RequestTimeOut The request timeout in milliseconds. - * - HasPriority true to ensure that the callback request will be sent - * immediately and will abort existing prioritized requests. It does not affect - * callbacks that are not prioritized. - * - EnablePageStateUpdate enable the callback response to enable the - * viewstate update. This will automatically set HasPrority to true when - * enabled. + * - HasPriority true to ensure that the callback request will be sent + * immediately and will abort existing prioritized requests. It does not affect + * callbacks that are not prioritized. + * - EnablePageStateUpdate enable the callback response to enable the + * viewstate update. This will automatically set HasPrority to true when enabled. * * @author Wei Zhuo * @version $Id$ diff --git a/framework/Web/UI/WebControls/TRequiredFieldValidator.php b/framework/Web/UI/WebControls/TRequiredFieldValidator.php index 8f75d205..c8488c93 100644 --- a/framework/Web/UI/WebControls/TRequiredFieldValidator.php +++ b/framework/Web/UI/WebControls/TRequiredFieldValidator.php @@ -116,7 +116,7 @@ class TRequiredFieldValidator extends TBaseValidator { $initial = trim($this->getInitialValue()); $value=$this->getValidationValue($control); - return trim($value)!==$initial || (is_bool($value) && $value); + return (is_bool($value) && $value) || trim($value)!==$initial; } /** -- cgit v1.2.3