diff options
author | xue <> | 2006-06-11 22:01:52 +0000 |
---|---|---|
committer | xue <> | 2006-06-11 22:01:52 +0000 |
commit | f30c38fcc9d6cdfa7aafa5078a58645192c11974 (patch) | |
tree | 51817c56b7295386e90fea5bf0f9fbd776a84bff /framework/Web/UI/WebControls/TListControl.php | |
parent | 233ad780df391ed4af569929c30a1370d2b440ef (diff) |
Prado js files are not rendered at the beginning of the form
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r-- | framework/Web/UI/WebControls/TListControl.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index 2c42c462..ccb400dc 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -116,10 +116,7 @@ abstract class TListControl extends TDataBoundControl if($this->getEnabled(true))
{
if($this->getAutoPostBack() && $page->getClientSupportsJavaScript())
- {
- $writer->addAttribute('id',$this->getClientID());
- $this->getPage()->getClientScript()->registerPostBackControl($this->getClientClassName(),$this->getPostBackOptions());
- }
+ $this->renderClientControlScript($writer);
}
else if($this->getEnabled())
$writer->addAttribute('disabled','disabled');
@@ -127,6 +124,15 @@ abstract class TListControl extends TDataBoundControl }
/**
+ * Renders the javascript for list control.
+ */
+ protected function renderClientControlScript($writer)
+ {
+ $writer->addAttribute('id',$this->getClientID());
+ $this->getPage()->getClientScript()->registerPostBackControl($this->getClientClassName(),$this->getPostBackOptions());
+ }
+
+ /**
* Gets the name of the javascript class responsible for performing postback for this control.
* This method overrides the parent implementation.
* @return string the javascript class name
|