diff options
author | wei <> | 2006-05-06 02:26:20 +0000 |
---|---|---|
committer | wei <> | 2006-05-06 02:26:20 +0000 |
commit | a7f6c6640ac9295eec3ae2edbb2250179eb85e33 (patch) | |
tree | 8a3879c747dfc3bcd5d65f334341ea7c81ced268 /framework/Web/UI/WebControls/TListControl.php | |
parent | 46155621cbf97191fca495cbd09a2eedd82afa82 (diff) |
Adding TActiveButton and TActiveTextBox
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r-- | framework/Web/UI/WebControls/TListControl.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index 1c615edc..1c7fe11b 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -113,16 +113,23 @@ abstract class TListControl extends TDataBoundControl if($this->getIsMultiSelect())
$writer->addAttribute('multiple','multiple');
if($this->getEnabled(true) && $this->getAutoPostBack() && $page->getClientSupportsJavaScript())
- {
- $writer->addAttribute('id',$this->getClientID());
- $this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.'.get_class($this),$this->getPostBackOptions());
- }
+ $this->renderClientControlScript($writer);
if(!$this->getEnabled(true) && $this->getEnabled())
$writer->addAttribute('disabled','disabled');
parent::addAttributesToRender($writer);
}
/**
+ * Renders the client-script code.
+ */
+ protected function renderClientControlScript($writer)
+ {
+ $writer->addAttribute('id',$this->getClientID());
+ $cs = $this->getPage()->getClientScript();
+ $cs->registerPostBackControl(get_class($this),$this->getPostBackOptions());
+ }
+
+ /**
* @return array postback options for JS postback code
*/
protected function getPostBackOptions()
|