summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveRadioButton.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveRadioButton.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveRadioButton.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveRadioButton.php b/framework/Web/UI/ActiveControls/TActiveRadioButton.php
index 90190a12..4e5280c7 100644
--- a/framework/Web/UI/ActiveControls/TActiveRadioButton.php
+++ b/framework/Web/UI/ActiveControls/TActiveRadioButton.php
@@ -87,6 +87,9 @@ class TActiveRadioButton extends TRadioButton implements IActiveControl, ICallba
*/
public function setText($value)
{
+ if(parent::getText() === $value)
+ return;
+
parent::setText($value);
if($this->getActiveControl()->canUpdateClientSide())
$this->getPage()->getCallbackClient()->update(
@@ -102,6 +105,9 @@ class TActiveRadioButton extends TRadioButton implements IActiveControl, ICallba
public function setChecked($value)
{
$value = TPropertyValue::ensureBoolean($value);
+ if(parent::getChecked() === $value)
+ return;
+
parent::setChecked($value);
if($this->getActiveControl()->canUpdateClientSide())
$this->getPage()->getCallbackClient()->check($this, $value);