From 0226f8f5f430d34b3cead40c4eb7b458933d16c6 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 18 Jan 2006 04:20:26 +0000 Subject: update javascript library and usage in web controls --- framework/Web/UI/WebControls/TPanel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TPanel.php') diff --git a/framework/Web/UI/WebControls/TPanel.php b/framework/Web/UI/WebControls/TPanel.php index 6661eadb..9eab135e 100644 --- a/framework/Web/UI/WebControls/TPanel.php +++ b/framework/Web/UI/WebControls/TPanel.php @@ -72,11 +72,13 @@ class TPanel extends TWebControl throw new TInvalidDataValueException('panel_defaultbutton_invalid',$butt); else { - $scripts = $this->getPage()->getClientScript(); + //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;");*/ } } } -- cgit v1.2.3