diff options
author | christophe.boulain <> | 2009-01-07 12:58:53 +0000 |
---|---|---|
committer | christophe.boulain <> | 2009-01-07 12:58:53 +0000 |
commit | fd4b2bffc430cb761ea0d54d19f5d1acd184a1c6 (patch) | |
tree | 0e2384e244ef765c80dada998601be0915735f68 /framework/Web/UI/ActiveControls/TActiveCheckBox.php | |
parent | 9c90e157734d921cd04f17a6559b2d8542d8f2bd (diff) |
TActiveCheckBox, TActiveRadioButton, TActiveDropDownList, TActiveListBox won't raise callback if AutoPostBack is false
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveCheckBox.php')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveCheckBox.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveCheckBox.php b/framework/Web/UI/ActiveControls/TActiveCheckBox.php index 55244372..3e078876 100644 --- a/framework/Web/UI/ActiveControls/TActiveCheckBox.php +++ b/framework/Web/UI/ActiveControls/TActiveCheckBox.php @@ -121,6 +121,9 @@ class TActiveCheckBox extends TCheckBox implements ICallbackEventHandler, IActiv /** * Ensure that the ID attribute is rendered and registers the javascript code * for initializing the active control. + * + * Since 3.1.4, the javascript code is not rendered if {@link setAutoPostBack AutoPostBack} is false + * * @param THtmlWriter the writer for the rendering purpose * @param string checkbox id * @param string onclick js @@ -128,8 +131,9 @@ class TActiveCheckBox extends TCheckBox implements ICallbackEventHandler, IActiv protected function renderInputTag($writer,$clientID,$onclick) { parent::renderInputTag($writer,$clientID,$onclick); - $this->getActiveControl()->registerCallbackClientScript( - $this->getClientClassName(), $this->getPostBackOptions()); + if ($this->getAutoPostBack()) + $this->getActiveControl()->registerCallbackClientScript( + $this->getClientClassName(), $this->getPostBackOptions()); } /** |