From 47d05516b1d1c465217c59732bf8442ab0cfd497 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 5 May 2006 06:58:04 +0000 Subject: Added prioritize callback and enabled viewstate update on callback return. --- framework/Web/UI/ActiveControls/TActiveLabel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TActiveLabel.php') diff --git a/framework/Web/UI/ActiveControls/TActiveLabel.php b/framework/Web/UI/ActiveControls/TActiveLabel.php index d71d8b7a..3216be43 100644 --- a/framework/Web/UI/ActiveControls/TActiveLabel.php +++ b/framework/Web/UI/ActiveControls/TActiveLabel.php @@ -29,7 +29,7 @@ class TActiveLabel extends TLabel /** * Creates a new callback control, sets the adapter to * TActiveControlAdapter. If you override this class, be sure to set the - * adapter appropriately by, for example, call this constructor. + * adapter appropriately by, for example, by calling this constructor. */ public function __construct() { @@ -44,7 +44,7 @@ class TActiveLabel extends TLabel public function setText($value) { parent::setText($value); - if($this->getPage()->getAllowCallbackUpdate()) + if($this->getIsInitialized()) { $this->getPage()->getCallbackClient()->update($this, $value); } @@ -59,7 +59,7 @@ class TActiveLabel extends TLabel public function setForControl($value) { parent::setForControl($value); - if($this->getPage()->getAllowCallbackUpdate()) + if($this->getIsInitialized()) { $id=$this->findControl($value)->getClientID(); $this->getPage()->getCallbackClient()->setAttribute($this, 'for', $id); @@ -67,4 +67,4 @@ class TActiveLabel extends TLabel } } -?> +?> \ No newline at end of file -- cgit v1.2.3