summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2007-07-25 15:43:06 +0000
committerxue <>2007-07-25 15:43:06 +0000
commite7bb0551bbe9c2d14e434e606b31225d9261a9c5 (patch)
tree98cfa623bce34f09184d99aa65785163534ac27d /framework/Web/UI
parentae7cba10c9c515e00901b2b05ee4dd352d70f16d (diff)
Added quickstart tutorial for TTabPanel.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TTabPanel.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php
index 42aac98b..411c0c0f 100644
--- a/framework/Web/UI/WebControls/TTabPanel.php
+++ b/framework/Web/UI/WebControls/TTabPanel.php
@@ -274,7 +274,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler
*/
public function loadPostData($key,$values)
{
- if(($index=$values[$key.':1'])!==null)
+ if(($index=$values[$this->getClientID().'_1'])!==null)
{
$index=(int)$index;
$currentIndex=$this->getActiveViewIndex();
@@ -359,7 +359,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler
$cs->registerPradoScript('prado');
$code="new $className($options);";
$cs->registerEndScript("prado:$id", $code);
- $cs->registerHiddenField($id.':1',$this->getActiveViewIndex());
+ $cs->registerHiddenField($id.'_1',$this->getActiveViewIndex());
$page->registerRequiresPostData($this);
}
@@ -378,7 +378,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler
*/
protected function getClientOptions()
{
- $options['ID']=$this->getUniqueID();
+ $options['ID']=$this->getClientID();
$options['ActiveCssClass']=$this->getActiveTabCssClass();
$options['NormalCssClass']=$this->getTabCssClass();
$viewIDs=array();