summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TImageButton.php
diff options
context:
space:
mode:
authorwei <>2007-02-13 00:39:17 +0000
committerwei <>2007-02-13 00:39:17 +0000
commitc662da1a887f852e08bd34d643111239ea82a961 (patch)
tree03d18c61514dfe1c4480defa6f5b4283e74991af /framework/Web/UI/WebControls/TImageButton.php
parentecdb360eb1f34bdeb8d7d25160ba8ce4941bf66b (diff)
Fix TImageButton bug in trunk http://www.pradosoft.com/forum/index.php/topic,6938.new.html for
Diffstat (limited to 'framework/Web/UI/WebControls/TImageButton.php')
-rw-r--r--framework/Web/UI/WebControls/TImageButton.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php
index 8a6f615b..8c1f2190 100644
--- a/framework/Web/UI/WebControls/TImageButton.php
+++ b/framework/Web/UI/WebControls/TImageButton.php
@@ -105,7 +105,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven
$writer->addAttribute('name',$uniqueID);
if($this->getEnabled(true))
{
- if($this->canCauseValidation() && $this->getEnableClientScript())
+ if($this->getEnableClientScript()) //remove $this->canCauseValidation() ?
$this->renderClientControlScript($writer);
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
@@ -176,7 +176,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;
}