summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveControlAdapter.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveControlAdapter.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveControlAdapter.php b/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
index 99c5e71e..13f32ddb 100644
--- a/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
+++ b/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
@@ -90,7 +90,12 @@ class TActiveControlAdapter extends TControlAdapter
public function render($writer)
{
$this->renderCallbackClientScripts();
- parent::render($writer);
+ if($this->_control->getVisible(false))
+ {
+ parent::render($writer);
+ } else {
+ $writer->write("<span id=\"".$this->_control->getClientID()."\" ></span>");
+ }
}
/**
@@ -341,9 +346,9 @@ class TCallbackPageStateTracker
protected function updateVisible($visible)
{
if($visible === false)
- $this->client()->hide($this->_control);
+ $this->client()->replaceContent($this->_control,"<span id=\"".$this->_control->getClientID()."\" ></span>");
else
- $this->client()->show($this->_control);
+ $this->client()->replaceContent($this->_control,$this->_control);
}
/**