Project

General

Profile

Bug #18906 ยป select_width.diff

Administrator Admin, 2008-06-08 11:32

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
// Getting style attribute value (for icons):
if ($config['iconsInOptionTags']) {
$styleAttrValue = $this->optionTagStyle($p[2]);
$cssClass = ' class="iconSelect"';
if ($sM) {
list($selectIconFile,$selectIconInfo) = $this->getIcon($p[2]);
if (!empty($selectIconInfo)) {
......
$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'].'"'.
($cssClass ? $cssClass : '') .
$this->insertDefStyle('select').
($size?' size="'.$size.'"':'').
' onchange="'.htmlspecialchars($sOnChange).'"'.
typo3/stylesheet.css (working copy)
color: #666;
}
select.iconSelect {
min-width: 240px;
}
table.typo3-TCEforms OPTGROUP.c-divider,
select option.c-divider {
font-style: italic;
    (1-1/1)