diff options
author | xue <> | 2005-12-13 14:29:42 +0000 |
---|---|---|
committer | xue <> | 2005-12-13 14:29:42 +0000 |
commit | 597dcf809dac8ba80bf754dc5e02f8b7ff370c8b (patch) | |
tree | d5a79d2aa055839e0377488366a71f32e0b2c554 /framework/Web/UI/WebControls/TLinkButton.php | |
parent | 14c2872a9ce91a7189b3f36a1470e5eadb09de7a (diff) |
Restored code about rendering attribute "disabled".
Diffstat (limited to 'framework/Web/UI/WebControls/TLinkButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TLinkButton.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TLinkButton.php b/framework/Web/UI/WebControls/TLinkButton.php index 3ddb6f68..121e6213 100644 --- a/framework/Web/UI/WebControls/TLinkButton.php +++ b/framework/Web/UI/WebControls/TLinkButton.php @@ -82,14 +82,14 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler // may be overwritten in the following
parent::addAttributesToRender($writer);
- if($this->getEnabled())
+ if($this->getEnabled(true))
{
$url = $this->getPostBackUrl();
//create unique no-op url references
$nop = "javascript:;//{$this->ClientID}";
$writer->addAttribute('href', $url ? $url : $nop);
}
- else// in this case, parent will not render 'disabled'
+ else if($this->getEnabled()) // in this case, parent will not render 'disabled'
$writer->addAttribute('disabled','disabled');
}
|