diff options
Diffstat (limited to 'framework/Web/UI/WebControls/TImageButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 131f7b1c..de3d1056 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -89,7 +89,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven $writer->addAttribute('type','image');
if(($uniqueID=$this->getUniqueID())!=='')
$writer->addAttribute('name',$uniqueID);
- if(!$this->getEnabled()) // in this case, parent will not render 'disabled'
+ if(!$this->getEnabled(true) && $this->getEnabled()) // in this case, parent will not render 'disabled'
$writer->addAttribute('disabled','disabled');
parent::addAttributesToRender($writer);
}
|