diff options
author | wei <> | 2006-01-21 02:07:59 +0000 |
---|---|---|
committer | wei <> | 2006-01-21 02:07:59 +0000 |
commit | 407aa2ff5d56859fcd1f47b85b4c4180d035c428 (patch) | |
tree | 7c4442ad2652f3021a969391fd8a468ca9400100 /framework/Web/UI/WebControls/TPanel.php | |
parent | f74267f8927d39b5cb3dc43203060488371127c9 (diff) |
Fixed DefaultButton and TLinkButton
Diffstat (limited to 'framework/Web/UI/WebControls/TPanel.php')
-rw-r--r-- | framework/Web/UI/WebControls/TPanel.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/framework/Web/UI/WebControls/TPanel.php b/framework/Web/UI/WebControls/TPanel.php index 9eab135e..33ae7cd2 100644 --- a/framework/Web/UI/WebControls/TPanel.php +++ b/framework/Web/UI/WebControls/TPanel.php @@ -72,13 +72,8 @@ class TPanel extends TWebControl throw new TInvalidDataValueException('panel_defaultbutton_invalid',$butt);
else
{
- //TODO
- /*$scripts = $this->getPage()->getClientScript();
- $js = $scripts->registerDefaultButtonScript($this,$button);
- $clientID=$this->getClientID();
- $scripts->registerEndScript($clientID.'defaultButton', $js);
- $writer->addAttribute('id',$clientID);
- $writer->addAttribute('onkeypress', "return false;");*/
+ $writer->addAttribute('id',$this->getClientID());
+ $this->getPage()->getClientScript()->registerDefaultButton($this, $button);
}
}
}
|