summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TBaseActiveControl.php
diff options
context:
space:
mode:
authorwei <>2006-06-24 05:46:22 +0000
committerwei <>2006-06-24 05:46:22 +0000
commita6be5564823be40670e0cad8dc758557dbd37549 (patch)
tree13083fe7ea207b5426c9ee29afc36654e1ed623d /framework/Web/UI/ActiveControls/TBaseActiveControl.php
parentcb8b23aca4c682c58323f432aa38a88c7a695377 (diff)
Update active controls.
Diffstat (limited to 'framework/Web/UI/ActiveControls/TBaseActiveControl.php')
-rw-r--r--framework/Web/UI/ActiveControls/TBaseActiveControl.php6
1 files changed, 4 insertions, 2 deletions
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);
}