Project

General

Profile

Bug #20149 ยป 10645.diff

Administrator Admin, 2009-03-10 08:44

View differences:

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]);
// generate thumb?
if (isset($PA['fieldConf']['config']['makeThumb'])) {
if (isset($PA['fieldConf']['config']['thumbSize'])) {
$size = t3lib_div::trimExplode('x', $PA['fieldConf']['config']['thumbSize']);
$selIconInfo[3] = 'width="' . $size[0] . '" height="' . $size[1] . '"';
} else {
$selIconInfo[3] = 'width="56" height="56"';
}
$selIconFile = $this->backPath . 'thumbs.php?dummy=' . $GLOBALS['EXEC_TIME'] . '&file=' . rawurlencode($selIconFile) . '&size=' .
(isset($PA['fieldConf']['config']['thumbSize']) ? $PA['fieldConf']['config']['thumbSize'] : '') .
'&md5sum=' . t3lib_div::shortMD5(basename($selIconFile).':'.filemtime($selIconFile).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']);
}
$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;';
    (1-1/1)