From 30a457a57db5c1d76280478aa6d126da34729eb4 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Tue, 15 May 2012 13:38:15 +0000 Subject: TActiveDatePicker's default value for the AutoPostBack property should be true (both for backward compatibility and coherence with other active controls) --- framework/Web/UI/ActiveControls/TActiveDatePicker.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/ActiveControls/TActiveDatePicker.php b/framework/Web/UI/ActiveControls/TActiveDatePicker.php index 603cfe3b..515eb29a 100755 --- a/framework/Web/UI/ActiveControls/TActiveDatePicker.php +++ b/framework/Web/UI/ActiveControls/TActiveDatePicker.php @@ -34,23 +34,23 @@ class TActiveDatePicker extends TDatePicker implements ICallbackEventHandler, I /** * @return boolean a value indicating whether an automatic postback to the server - * will occur whenever the user modifies the text in the TTextBox control and - * then tabs out of the component. Defaults to false. + * will occur whenever the user modifies the text in the TActiveDatePicker control and + * then tabs out of the component. Defaults to true. */ public function getAutoPostBack() { - return $this->getViewState('AutoPostBack',false); + return $this->getViewState('AutoPostBack',true); } /** * Sets the value indicating if postback automatically. * An automatic postback to the server will occur whenever the user - * modifies the text in the TTextBox control and then tabs out of the component. + * modifies the text in the TActiveDatePicker control and then tabs out of the component. * @param boolean the value indicating if postback automatically */ public function setAutoPostBack($value) { - $this->setViewState('AutoPostBack',TPropertyValue::ensureBoolean($value),false); + $this->setViewState('AutoPostBack',TPropertyValue::ensureBoolean($value),true); } /** -- cgit v1.2.3