summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorctrlaltca <>2012-06-04 08:47:39 +0000
committerctrlaltca <>2012-06-04 08:47:39 +0000
commit357ee6f0b72cd1657b01d8ebc5854300e5fadab4 (patch)
tree91adf8ba1c7d92c848021876731b5319b7369b96
parent8ac1a9932fc72bed458c541840304a3431dbf120 (diff)
After r3159 TTabPanel was not keeping the active TabView upon post back: fixed
-rw-r--r--framework/Web/UI/WebControls/TTabPanel.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php
index a79835ed..092e7931 100644
--- a/framework/Web/UI/WebControls/TTabPanel.php
+++ b/framework/Web/UI/WebControls/TTabPanel.php
@@ -394,6 +394,10 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler
parent::onPreRender($param);
$this->getActiveView(); // determine the active view
$this->registerStyleSheet();
+
+ $page=$this->getPage();
+ $page->registerRequiresPostData($this);
+ $page->registerRequiresPostData($this->getClientID()."_1");
}
/**
@@ -426,8 +430,7 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler
$id=$this->getClientID();
$options=TJavaScript::encode($this->getClientOptions());
$className=$this->getClientClassName();
- $page=$this->getPage();
- $cs=$page->getClientScript();
+ $cs=$this->getPage()->getClientScript();
$cs->registerPradoScript('tabpanel');
$code="new $className($options);";
$cs->registerEndScript("prado:$id", $code);
@@ -436,8 +439,6 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler
if(!$this->getViews()->itemAt($index)->Visible)
$index=0;
$cs->registerHiddenField($id.'_1', $index);
- $page->registerRequiresPostData($this);
- $page->registerRequiresPostData($id."_1");
}
/**