summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TAccordion.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TAccordion.php')
-rw-r--r--framework/Web/UI/WebControls/TAccordion.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TAccordion.php b/framework/Web/UI/WebControls/TAccordion.php
index 8fd53e29..ba38d14d 100644
--- a/framework/Web/UI/WebControls/TAccordion.php
+++ b/framework/Web/UI/WebControls/TAccordion.php
@@ -415,7 +415,6 @@ class TAccordion extends TWebControl implements IPostBackDataHandler
parent::onPreRender($param);
$this->getActiveView(); // determine the active view
$this->registerStyleSheet();
- $this->registerClientScript();
}
/**
@@ -509,6 +508,12 @@ class TAccordion extends TWebControl implements IPostBackDataHandler
return $this->getControls();
}
+ public function render($writer)
+ {
+ $this->registerClientScript();
+ parent::render($writer);
+ }
+
/**
* Renders body contents of the accordion control.
* @param THtmlWriter the writer used for the rendering purpose.