Project

General

Profile

Bug #25194 ยป 17787.patch

Administrator Admin, 2011-02-27 14:34

View differences:

typo3/sysext/em/res/js/em_components.js (revision )
dataIndex:'statevalue',
renderer: function(value, metaData, record, rowIndex, colIndex, store){
metaData.css += record.data.stateCls + ' ';
return record.data.state;
var label = TYPO3.lang.translation_n_a;
switch (parseInt(value, 10)) {
case 0:
label = TYPO3.lang.state_alpha;
break;
case 1:
label = TYPO3.lang.state_beta;
break;
case 2:
label = TYPO3.lang.state_stable;
break;
case 3:
label = TYPO3.lang.state_experimental;
break;
case 4:
label = TYPO3.lang.state_test;
break;
case 5:
label = TYPO3.lang.state_obsolete;
break;
case 6:
label = TYPO3.lang.state_exclude_from_updates;
break;
}
return label;
},
filterable: true
};
typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php (revision )
$extPath = t3lib_div::strtolower($value['extkey']);
$list['results'][$key]['statevalue'] = $value['state'];
$list['results'][$key]['state'] = tx_em_Tools::getDefaultState(intval($value['state']));
$list['results'][$key]['stateCls'] = 'state-' . $list['results'][$key]['state'];
$list['results'][$key]['version'] = tx_em_Tools::versionFromInt($value['maxintversion']);
$list['results'][$key]['icon'] = '<img alt="" src="' . $mirrorUrl . $extPath{0} . '/' . $extPath{1} . '/' . $extPath . '_' . $list['results'][$key]['version'] . '.gif" />';
    (1-1/1)