summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveControlAdapter.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-11-15 17:33:22 +0000
committerctrlaltca@gmail.com <>2011-11-15 17:33:22 +0000
commit81fc5eee82a692b88fa6ae687ee3d33b668fd747 (patch)
tree956eb95ad953c31f3893560433420a4320142fdd /framework/Web/UI/ActiveControls/TActiveControlAdapter.php
parent62b40123b4276633d491682d756a5f72199cb8a0 (diff)
dirty test patch for #372, open for comments
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);
}
/**