Changeset 2433

Show
Ignore:
Timestamp:
04/18/2008 04:43:30 AM
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:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/UPGRADE

    r2323 r2433  
    1919     'albums' => array(self::MANY_TO_MANY, 'Artist', 'album_artists') 
    2020- Active Record no longer automatically adds/removes/updates related objects. 
     21- 'Raw' mode for TCheckboxList and TRadioButtonList (and their active counter parts) now render 
     22  a surrounding <span> tag to allow client scripts to identify them with the ClientId. You may 
     23  have to check your CSS. 
    2124 
    2225 
  • 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