summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveLabel.php
diff options
context:
space:
mode:
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);
- }
}
/**