From 14a4d3010ab626c3d333606daeb5012d0804c1dd Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 16 Jan 2006 14:16:50 +0000 Subject: Added support to localization tag. --- framework/Web/UI/WebControls/TPanel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 5065aa61..6661eadb 100644 --- a/framework/Web/UI/WebControls/TPanel.php +++ b/framework/Web/UI/WebControls/TPanel.php @@ -74,8 +74,9 @@ class TPanel extends TWebControl { $scripts = $this->getPage()->getClientScript(); $js = $scripts->registerDefaultButtonScript($this,$button); - $scripts->registerEndScript($this->ClientID.'defaultButton', $js); - $writer->addAttribute('id',$this->getClientID()); + $clientID=$this->getClientID(); + $scripts->registerEndScript($clientID.'defaultButton', $js); + $writer->addAttribute('id',$clientID); } } } -- cgit v1.2.3