diff options
author | wei <> | 2007-02-13 00:38:07 +0000 |
---|---|---|
committer | wei <> | 2007-02-13 00:38:07 +0000 |
commit | 91372694449c295426cbd19804406736bc327027 (patch) | |
tree | 03d4ca14ded4c44beef19f66c08084bcf851206b /framework/Web/UI/WebControls/TImageButton.php | |
parent | 459ad2db05516db0afbfce3c8a69d576761b148f (diff) |
Fix TImageButton bug http://www.pradosoft.com/forum/index.php/topic,6938.new.html
Diffstat (limited to 'framework/Web/UI/WebControls/TImageButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 7a67c8b7..bd974c64 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -89,11 +89,8 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven $writer->addAttribute('name',$uniqueID);
if($this->getEnabled(true))
{
- if($this->canCauseValidation())
- {
$writer->addAttribute('id',$this->getClientID());
$this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.TImageButton',$this->getPostBackOptions());
- }
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
$writer->addAttribute('disabled','disabled');
@@ -143,7 +140,6 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven {
$this->_x=intval($values["{$uid}_x"]);
$this->_y=intval($values["{$uid}_y"]);
- $this->getPage()->setPostBackEventTarget($this);
}
return false;
}
|