Project

General

Profile

Bug #24256 ยป tceforms_multiselect.patch

Administrator Admin, 2011-01-16 23:06

View differences:

t3lib/class.t3lib_tceforms.php (Arbeitskopie)
$sOnChange = implode('', $PA['fieldChangeFunc']);
$selector_itemListStyle = isset($config['itemListStyle']) ? ' style="' . htmlspecialchars($config['itemListStyle']) . '"' : ' style="' . $this->defaultMultipleSelectorStyle . '"';
$size = intval($config['size']);
$cssPrefix = ($size == 1) ? 'tceforms-select' : 'tceforms-multiselect';
$size = $config['autoSizeMax'] ? t3lib_div::intInRange(count($selItems) + 1, t3lib_div::intInRange($size, 1), $config['autoSizeMax']) : $size;
$selectBox = '<select id="' . uniqid('tceforms-multiselect-') . '" name="' . $PA['itemFormElName'] . '[]"' .
$this->insertDefStyle('select', 'tceforms-multiselect') .
$selectBox = '<select id="' . uniqid($cssPrefix) . '" name="' . $PA['itemFormElName'] . '[]"' .
$this->insertDefStyle('select', $cssPrefix) .
($size ? ' size="' . $size . '"' : '') .
' multiple="multiple" onchange="' . htmlspecialchars($sOnChange) . '"' .
$PA['onFocus'] .
typo3/sysext/t3skin/stylesheets/structure/element_tceforms.css (Arbeitskopie)
width: 250px;
}
.typo3-TCEforms select.tceforms-multiselect {
min-height: 85px;
}
.typo3-TCEforms-palette .typo3-csh-link img {
padding-top: 3px;
vertical-align: top;
    (1-1/1)