From 8b3b214c305ab78b1942e080b4d6543ff4060bf8 Mon Sep 17 00:00:00 2001 From: tof <> Date: Fri, 18 Apr 2008 09:43:30 +0000 Subject: Makes TCheckboxList and derived controls render a surrounding span in Raw mode to allow clients scripts to identify them using ClientId. --- framework/Web/UI/WebControls/TCheckBoxList.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'framework/Web') 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; } /** -- cgit v1.2.3