diff options
author | Jens Klaer <kj.landwehr.software@gmail.com> | 2015-08-11 12:36:26 +0200 |
---|---|---|
committer | Jens Klaer <kj.landwehr.software@gmail.com> | 2015-08-11 12:36:26 +0200 |
commit | 9a01a40029c644be2dfe0d225c1e8fb1265805b4 (patch) | |
tree | ed88541de6012eefaea3e617b5bb067a9c4a891d /framework/Web/UI | |
parent | 5e9d9802c4b17c5057061e30f92d48c8a3bbd052 (diff) |
TActiveCheckBoxList not obeying AutoPostBack="false"
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveCheckBoxList.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php b/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php index ea174c94..1ed76c2e 100644 --- a/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php +++ b/framework/Web/UI/ActiveControls/TActiveCheckBoxList.php @@ -111,8 +111,13 @@ class TActiveCheckBoxList extends TCheckBoxList implements IActiveControl, ICall protected function addAttributesToRender($writer) { parent::addAttributesToRender($writer); - $this->getActiveControl()->registerCallbackClientScript( - $this->getClientClassName(), $this->getPostBackOptions()); + if($this->getEnableClientScript() + && $this->getAutoPostBack() + && $this->getPage()->getClientSupportsJavaScript()) + { + $this->getActiveControl()->registerCallbackClientScript( + $this->getClientClassName(), $this->getPostBackOptions()); + } } /** |