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/TCheckBox.php | |
parent | 46155621cbf97191fca495cbd09a2eedd82afa82 (diff) |
Adding TActiveButton and TActiveTextBox
Diffstat (limited to 'framework/Web/UI/WebControls/TCheckBox.php')
-rw-r--r-- | framework/Web/UI/WebControls/TCheckBox.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index da389948..cb8fb30d 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -351,7 +351,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl $page=$this->getPage();
if($this->getEnabled(true) && $this->getAutoPostBack() && $page->getClientSupportsJavaScript())
- $page->getClientScript()->registerPostBackControl('Prado.WebUI.TCheckBox',$this->getPostBackOptions());
+ $this->renderClientControlScript($writer);
if(($accesskey=$this->getAccessKey())!=='')
$writer->addAttribute('accesskey',$accesskey);
@@ -364,6 +364,15 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl }
/**
+ * Renders the client-script code.
+ */
+ protected function renderClientControlScript($writer)
+ {
+ $cs = $this->getPage()->getClientScript();
+ $cs->registerPostBackControl(get_class($this),$this->getPostBackOptions());
+ }
+
+ /**
* Gets the post back options for this checkbox.
* @return array
*/
|