summaryrefslogtreecommitdiff
path: root/lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php')
-rw-r--r--lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php b/lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php
index aaf2d35..7c2159a 100644
--- a/lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php
+++ b/lib/prado/framework/Web/UI/ActiveControls/TActiveLinkButton.php
@@ -4,7 +4,7 @@
*
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
* @link https://github.com/pradosoft/prado
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
+ * @copyright Copyright &copy; 2005-2016 The PRADO Group
* @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
* @package System.Web.UI.ActiveControls
*/
@@ -95,6 +95,9 @@ class TActiveLinkButton extends TLinkButton implements IActiveControl, ICallback
*/
public function setText($value)
{
+ if(parent::getText() === $value)
+ return;
+
parent::setText($value);
if($this->getActiveControl()->canUpdateClientSide())
$this->getPage()->getCallbackClient()->update($this, $value);
@@ -131,6 +134,9 @@ class TActiveLinkButton extends TLinkButton implements IActiveControl, ICallback
*/
public function setEnabled($value)
{
+ if(parent::getEnabled() === $value)
+ return;
+
parent::setEnabled($value);
if($this->getActiveControl()->canUpdateClientSide())
{