Show
Ignore:
Timestamp:
04/18/2008 04:43:30 AM (9 months ago)
Author:
tof
Message:

Makes TCheckboxList and derived controls render a surrounding span in Raw mode to allow clients scripts to identify them using ClientId?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/WebControls/TCheckBoxList.php

    r2430 r2433  
    367367        protected function getSpanNeeded () 
    368368        { 
    369                 if ($this->getRepeatLayout()===TRepeatLayout::Raw) 
    370                 { 
    371                         $id=$this->getID(); 
    372                         // Check if we have a validator registered for this control 
    373                         foreach ($this->getPage()->getValidators() as $v) 
    374                         { 
    375                                 if ($v->getControlToValidate()===$id) 
    376                                         return true; 
    377                         } 
    378                 } 
    379                 return false; 
     369                return $this->getRepeatLayout()===TRepeatLayout::Raw; 
    380370        } 
    381371