diff options
author | xue <> | 2006-03-17 22:58:05 +0000 |
---|---|---|
committer | xue <> | 2006-03-17 22:58:05 +0000 |
commit | 95764689f7681d5905c199727dd456671f2fd1b6 (patch) | |
tree | 6a7c4f74642de8189420679b2d43c4124fc1bf36 /framework/Web/UI/WebControls/TListControl.php | |
parent | 261c29ece2ccf37e6419b9886cefd29f9dbb3c89 (diff) |
Cleanup of usage of registerPostBackControl.
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r-- | framework/Web/UI/WebControls/TListControl.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index be0abd38..7ea22e1d 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -116,7 +116,7 @@ abstract class TListControl extends TDataBoundControl if($this->getEnabled(true) && $this->getAutoPostBack() && $page->getClientSupportsJavaScript())
{
$writer->addAttribute('id',$this->getClientID());
- $this->getPage()->getClientScript()->registerPostBackControl($this);
+ $this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.'.get_class($this),$this->getPostBackOptions());
}
if($this->getEnabled(true) && !$this->getEnabled())
$writer->addAttribute('disabled','disabled');
@@ -124,10 +124,11 @@ abstract class TListControl extends TDataBoundControl }
/**
- * @return TPostBackOptions postback options for JS postback code
+ * @return array postback options for JS postback code
*/
- public function getPostBackOptions()
+ protected function getPostBackOptions()
{
+ $options['ID'] = $this->getClientID();
$options['CausesValidation'] = $this->getCausesValidation();
$options['ValidationGroup'] = $this->getValidationGroup();
$options['EventTarget'] = $this->getUniqueID();
|