summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authortof <>2008-04-18 09:43:30 +0000
committertof <>2008-04-18 09:43:30 +0000
commit8b3b214c305ab78b1942e080b4d6543ff4060bf8 (patch)
tree53cb2643052951955d721f8aab3560bf68905caa /framework/Web/UI/WebControls
parentfe0c985d83a291d1f6fdaf09aa17efc16962c679 (diff)
Makes TCheckboxList and derived controls render a surrounding span in Raw mode to allow clients scripts to identify them using ClientId.
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TCheckBoxList.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/framework/Web/UI/WebControls/TCheckBoxList.php b/framework/Web/UI/WebControls/TCheckBoxList.php
index 51b363ad..d6eca318 100644
--- a/framework/Web/UI/WebControls/TCheckBoxList.php
+++ b/framework/Web/UI/WebControls/TCheckBoxList.php
@@ -366,17 +366,7 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingCont
*/
protected function getSpanNeeded ()
{
- if ($this->getRepeatLayout()===TRepeatLayout::Raw)
- {
- $id=$this->getID();
- // Check if we have a validator registered for this control
- foreach ($this->getPage()->getValidators() as $v)
- {
- if ($v->getControlToValidate()===$id)
- return true;
- }
- }
- return false;
+ return $this->getRepeatLayout()===TRepeatLayout::Raw;
}
/**