diff options
author | wei <> | 2006-01-18 04:20:26 +0000 |
---|---|---|
committer | wei <> | 2006-01-18 04:20:26 +0000 |
commit | 0226f8f5f430d34b3cead40c4eb7b458933d16c6 (patch) | |
tree | 68b21c4bec09ed73edc64019b4e20a2e3853d477 /framework/Web/UI/WebControls/TRadioButton.php | |
parent | e2219c91b98088289080bfa451d3083851eddf76 (diff) |
update javascript library and usage in web controls
Diffstat (limited to 'framework/Web/UI/WebControls/TRadioButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TRadioButton.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index a3d4d0c0..d965b64f 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -161,12 +161,7 @@ class TRadioButton extends TCheckBox $page=$this->getPage();
if($this->getAutoPostBack() && $page->getClientSupportsJavaScript())
- {
- $options = $this->getAutoPostBackOptions();
- $scripts = $page->getClientScript();
- $postback = $scripts->getPostBackEventReference($this,'',$options,false);
- $scripts->registerClientEvent($this, "click", $postback);
- }
+ $page->getClientScript()->registerPostBackControl($this);
if(($accesskey=$this->getAccessKey())!=='')
$writer->addAttribute('accesskey',$accesskey);
|