Bug #20411 » 20090508_RFC_11059.diff
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
// If there is an icon for the selector box (rendered in table under)...:
|
||
if ($p[2] && !$suppressIcons && (!$onlySelectedIconShown || $sM)) {
|
||
list($selIconFile,$selIconInfo)=$this->getIcon($p[2]);
|
||
$iOnClick = $this->elName($PA['itemFormElName']) . '.selectedIndex=' . $c . '; ' .
|
||
$iOnClick = $this->elName($PA['itemFormElName']) . '.selectedIndex=' . $c . '; ' .
|
||
$this->elName($PA['itemFormElName']) . '.style.backgroundImage=' . $this->elName($PA['itemFormElName']) . '.options[' . $c .'].style.backgroundImage; ' .
|
||
implode('',$PA['fieldChangeFunc']).$this->blur().'return false;';
|
||
$selicons[]=array(
|
||
... | ... | |
$item.= '<input type="hidden" name="'.$PA['itemFormElName'].'_selIconVal" value="'.htmlspecialchars($sI).'" />'; // MUST be inserted before the selector - else is the value of the hiddenfield here mysteriously submitted...
|
||
}
|
||
$item .= '<select' . $selectedStyle . ' name="' . $PA['itemFormElName'] . '"' .
|
||
($config['iconsInOptionTags'] ? ' class="icon-select"' : '') .
|
||
$this->insertDefStyle('select') .
|
||
($config['iconsInOptionTags'] ? ' class="icon-select"' : $this->insertDefStyle('select')) .
|
||
($size ? ' size="' . $size . '"' : '') .
|
||
' onchange="' . htmlspecialchars($onChangeIcon . $sOnChange) . '"' .
|
||
$PA['onFocus'] . $disabled . '>';
|