From a6be5564823be40670e0cad8dc758557dbd37549 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 24 Jun 2006 05:46:22 +0000 Subject: Update active controls. --- framework/Web/UI/ActiveControls/TBaseActiveControl.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TBaseActiveControl.php') diff --git a/framework/Web/UI/ActiveControls/TBaseActiveControl.php b/framework/Web/UI/ActiveControls/TBaseActiveControl.php index c42f75e8..dfb7efeb 100644 --- a/framework/Web/UI/ActiveControls/TBaseActiveControl.php +++ b/framework/Web/UI/ActiveControls/TBaseActiveControl.php @@ -117,7 +117,7 @@ class TBaseActiveControl extends TComponent */ public function canUpdateClientSide() { - return $this->getControl()->getIsInitialized() + return $this->getControl()->getHasChildInitialized() && $this->getPage()->getIsCallback() && $this->getEnableUpdate(); } @@ -319,7 +319,9 @@ class TBaseActiveCallbackControl extends TBaseActiveControl if(is_array($options)) $options = array_merge($this->getClientSideOptions(),$options); else - $options = $this->getClientSideOptions(); + $options = $this->getClientSideOptions(); + //remove true as default to save bytes + $options['CausesValidation']= $options['CausesValidation'] ? '' : false; $cs->registerCallbackControl($class, $options); } -- cgit v1.2.3