Project

General

Profile

Bug #22679 » 0014430_disable_controls_list.patch

Administrator Admin, 2010-05-19 12:13

View differences:

t3lib/class.t3lib_tceforms.php (Arbeitskopie)
// Creating the element:
$noList = isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'list');
$noDelete = isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'delete');
$params = array(
'size' => $size,
'dontShowMoveIcons' => ($maxitems<=1),
......
'readOnly' => $disabled,
'noBrowser' => $noList || isset($config['disable_controls']) && t3lib_div::inList($config['disable_controls'], 'browser'),
'noList' => $noList,
'noDelete' => $noDelete,
);
$item.= $this->dbFileIcons($PA['itemFormElName'],'file',implode(',',$tempFT),$itemArray,'',$params,$PA['onFocus']);
......
'<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/insert5.png', 'width="14" height="14"') . ' border="0" ' . t3lib_BEfunc::titleAltAttrib(sprintf($this->getLL('l_clipInsert_' . ($mode == 'db' ? 'db' : 'file')), count($clipElements))) . ' />' .
'</a>';
}
}
if (!$params['readOnly'] && !$params['noDelete']) {
$rOnClick = $rOnClickInline.'setFormValueManipulate(\''.$fName.'\',\'Remove\'); return false';
$icons['L'][]='<a href="#" onclick="'.htmlspecialchars($rOnClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/group_clear.gif','width="14" height="14"').' border="0" '.t3lib_BEfunc::titleAltAttrib($this->getLL('l_remove_selected')).' />'.
(1-1/4)