diff options
author | xue <> | 2005-12-07 03:31:08 +0000 |
---|---|---|
committer | xue <> | 2005-12-07 03:31:08 +0000 |
commit | d2f675e58b1c42c8960907ee20490a391aec0ecc (patch) | |
tree | ec37e7019b5ea261b4dde1ac88b2dacbd0675905 /framework/Web/UI/WebControls/TImageButton.php | |
parent | bd56fe6028fc09d8121f353ac7e33fc11994de9b (diff) |
Diffstat (limited to 'framework/Web/UI/WebControls/TImageButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 669e517e..33dfde75 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -96,8 +96,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven if($this->getEnabled(true))
{
- $onclick='';
- $onclick=$this->hasAttribute('onclick')?$this->getAttributes()->remove('onclick'):'';
+ $onclick=$this->removeAttribute('onclick');
$onclick=THttpUtility::trimJavaScriptString($onclick).THttpUtility::trimJavaScriptString($this->getOnClientClick());
$onclick.=$page->getClientScript()->getPostBackEventReference($this,'',$this->getPostBackOptions(),false);
if(!empty($onclick))
|