diff options
author | ctrlaltca@gmail.com <> | 2012-04-14 13:18:59 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2012-04-14 13:18:59 +0000 |
commit | ec32aa3e046b236c8a0f5aa5ea74d68bb120a6da (patch) | |
tree | 6113fdcb7ca7ddcd8a299d343310ef572184906a /framework/Web/UI | |
parent | 4bb1e22981b24cb3ab1c4f9b17937f1b58336af5 (diff) |
When rendering the <span> used as a placeholder for an invisible activecontrol, set its style to display:none to ensure it's considered not-visible by clientside javascript
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveControlAdapter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveControlAdapter.php b/framework/Web/UI/ActiveControls/TActiveControlAdapter.php index fe8b0757..3e6747b3 100644 --- a/framework/Web/UI/ActiveControls/TActiveControlAdapter.php +++ b/framework/Web/UI/ActiveControls/TActiveControlAdapter.php @@ -94,7 +94,7 @@ class TActiveControlAdapter extends TControlAdapter {
parent::render($writer);
} else {
- $writer->write("<span id=\"".$this->_control->getClientID()."\" ></span>");
+ $writer->write("<span id=\"".$this->_control->getClientID()."\" style=\"display:none\"></span>");
}
}
@@ -346,7 +346,7 @@ class TCallbackPageStateTracker protected function updateVisible($visible)
{
if($visible === false)
- $this->client()->replaceContent($this->_control,"<span id=\"".$this->_control->getClientID()."\" ></span>");
+ $this->client()->replaceContent($this->_control,"<span id=\"".$this->_control->getClientID()."\" style=\"display:none\" ></span>");
else
$this->client()->replaceContent($this->_control,$this->_control);
}
|