From a7f6c6640ac9295eec3ae2edbb2250179eb85e33 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 6 May 2006 02:26:20 +0000 Subject: Adding TActiveButton and TActiveTextBox --- framework/Web/UI/ActiveControls/TActiveLabel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 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 7e5a8084..13a88b4f 100644 --- a/framework/Web/UI/ActiveControls/TActiveLabel.php +++ b/framework/Web/UI/ActiveControls/TActiveLabel.php @@ -58,7 +58,9 @@ class TActiveLabel extends TLabel */ protected function canUpdateClientSide() { - return $this->getIsInitialized() && $this->getAllowCallbackUpdate(); + return $this->getIsInitialized() + && $this->getPage()->getIsCallback() + && $this->getAllowCallbackUpdate(); } /** @@ -69,9 +71,7 @@ class TActiveLabel extends TLabel { parent::setText($value); if($this->canUpdateClientSide()) - { $this->getPage()->getCallbackClient()->update($this, $value); - } } /** -- cgit v1.2.3