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/TImageButton.php | |
parent | 261c29ece2ccf37e6419b9886cefd29f9dbb3c89 (diff) |
Cleanup of usage of registerPostBackControl.
Diffstat (limited to 'framework/Web/UI/WebControls/TImageButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index f98cccb1..e5e5f3b9 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -92,7 +92,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven if($this->canCauseValidation())
{
$writer->addAttribute('id',$this->getClientID());
- $this->getPage()->getClientScript()->registerPostBackControl($this);
+ $this->getPage()->getClientScript()->registerPostBackControl('Prado.WebUI.TImageButton',$this->getPostBackOptions());
}
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
@@ -119,8 +119,9 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven * This method is used by framework and control developers.
* @return array parameters about how the button defines its postback behavior.
*/
- public function getPostBackOptions()
+ protected function getPostBackOptions()
{
+ $options['ID'] = $this->getClientID();
$options['CausesValidation'] = $this->getCausesValidation();
$options['ValidationGroup'] = $this->getValidationGroup();
|