From 9a01a40029c644be2dfe0d225c1e8fb1265805b4 Mon Sep 17 00:00:00 2001 From: Jens Klaer Date: Tue, 11 Aug 2015 12:36:26 +0200 Subject: TActiveCheckBoxList not obeying AutoPostBack="false" --- framework/Web/UI/ActiveControls/TActiveCheckBoxList.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI') 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()); + } } /** -- cgit v1.2.3