From c662da1a887f852e08bd34d643111239ea82a961 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 13 Feb 2007 00:39:17 +0000 Subject: Fix TImageButton bug in trunk http://www.pradosoft.com/forum/index.php/topic,6938.new.html for --- framework/Web/UI/WebControls/TImageButton.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls') 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; } -- cgit v1.2.3