summaryrefslogtreecommitdiff
path: root/lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.php')
-rw-r--r--lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.php b/lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.php
index 2ffee7e..5e98250 100644
--- a/lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.php
+++ b/lib/prado/framework/Web/UI/ActiveControls/TActiveHyperLink.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
*/
@@ -50,6 +50,9 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
*/
public function setText($value)
{
+ if(parent::getText() === $value)
+ return;
+
parent::setText($value);
if($this->getActiveControl()->canUpdateClientSide())
$this->getPage()->getCallbackClient()->update($this, $value);
@@ -61,6 +64,9 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
*/
public function setImageUrl($value)
{
+ if(parent::getImageUrl() === $value)
+ return;
+
parent::setImageUrl($value);
if($this->getActiveControl()->canUpdateClientSide() && $value !== '')
{
@@ -77,6 +83,9 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
*/
public function setNavigateUrl($value)
{
+ if(parent::getNavigateUrl() === $value)
+ return;
+
parent::setNavigateUrl($value);
if($this->getActiveControl()->canUpdateClientSide())
{
@@ -92,6 +101,9 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
*/
public function setTarget($value)
{
+ if(parent::getTarget() === $value)
+ return;
+
parent::setTarget($value);
if($this->getActiveControl()->canUpdateClientSide())
$this->getPage()->getCallbackClient()->setAttribute($this, 'target', $value);