summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorxue <>2007-07-25 20:21:58 +0000
committerxue <>2007-07-25 20:21:58 +0000
commit21dde48b3caf7ee8aff1343c22f6ef5c18ee167b (patch)
treeb07c61a0ce622e971d3c6490ba17d5eac6159fde /framework/Web/UI/WebControls
parent2b8fc1b49a2eeeb0756ec8756b54413b1b45d79e (diff)
Added visibility support to individual views.
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TTabPanel.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php
index 4a072828..86f322e8 100644
--- a/framework/Web/UI/WebControls/TTabPanel.php
+++ b/framework/Web/UI/WebControls/TTabPanel.php
@@ -609,16 +609,19 @@ class TTabView extends TWebControl
*/
public function renderTab($writer)
{
- $writer->addAttribute('id',$this->getClientID().'_0');
+ if($this->getVisible(false) && $this->getPage()->getClientSupportsJavaScript())
+ {
+ $writer->addAttribute('id',$this->getClientID().'_0');
- $style=$this->getActive()?$this->getParent()->getActiveTabStyle():$this->getParent()->getTabStyle();
- $style->addAttributesToRender($writer);
+ $style=$this->getActive()?$this->getParent()->getActiveTabStyle():$this->getParent()->getTabStyle();
+ $style->addAttributesToRender($writer);
- $writer->renderBeginTag($this->getTagName());
+ $writer->renderBeginTag($this->getTagName());
- $this->renderTabContent($writer);
+ $this->renderTabContent($writer);
- $writer->renderEndTag();
+ $writer->renderEndTag();
+ }
}
/**