diff options
author | wei <> | 2006-10-01 10:37:06 +0000 |
---|---|---|
committer | wei <> | 2006-10-01 10:37:06 +0000 |
commit | 9fee2935d91e92235b068632d3608c748ef41bfe (patch) | |
tree | 4e05ba6e0fb298ef7c935c3e0082409cec766fd8 /framework/Web/UI/WebControls | |
parent | 36f2ce766bde98c11d57b889fd9e1a7f8dff6010 (diff) |
fix image button, update functional test cases for opera
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 3e96abdc..8a6f615b 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -103,11 +103,10 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven $writer->addAttribute('type','image');
if(($uniqueID=$this->getUniqueID())!=='')
$writer->addAttribute('name',$uniqueID);
- if($this->getEnabled(true)
- && $this-canCauseValidation()
- && $this->getEnableClientScript())
+ if($this->getEnabled(true))
{
- $this->renderClientControlScript($writer);
+ if($this->canCauseValidation() && $this->getEnableClientScript())
+ $this->renderClientControlScript($writer);
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
$writer->addAttribute('disabled','disabled');
|