summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveLabel.php
diff options
context:
space:
mode:
authorwei <>2006-05-06 02:26:20 +0000
committerwei <>2006-05-06 02:26:20 +0000
commita7f6c6640ac9295eec3ae2edbb2250179eb85e33 (patch)
tree8a3879c747dfc3bcd5d65f334341ea7c81ced268 /framework/Web/UI/ActiveControls/TActiveLabel.php
parent46155621cbf97191fca495cbd09a2eedd82afa82 (diff)
Adding TActiveButton and TActiveTextBox
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveLabel.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveLabel.php6
1 files changed, 3 insertions, 3 deletions
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);
- }
}
/**