Project

General

Profile

Bug #11600 » 11600v2.patch

Tolleiv Nietsch, 2010-12-22 17:56

View differences:

Classes/Controller/ReviewController.php (working copy)
$this->view->assign('workspaceList', $wsService->getAvailableWorkspaces());
$this->view->assign('activeWorkspaceUid', tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES);
$GLOBALS['BE_USER']->setAndSaveSessionData('tx_workspace_activeWorkspace', tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES);
// set flag for javascript
$this->pageRenderer->addInlineSetting('Workspaces', 'allView', '1');
}
}
Resources/Public/JavaScript/configuration.js (working copy)
xtype: 'actioncolumn',
header:'',
width: 18,
hidden: (TYPO3.settings.Workspaces.allView === '1'),
items:[
{
iconCls: 't3-icon t3-icon-extensions t3-icon-extensions-workspaces t3-icon-workspaces-sendtoprevstage',
......
xtype: 'actioncolumn',
header:'',
width: 18,
hidden: (TYPO3.settings.Workspaces.allView === '1'),
items: [
{},{ // empty dummy important!!!!
iconCls: 't3-icon t3-icon-extensions t3-icon-extensions-workspaces t3-icon-workspaces-sendtonextstage',
......
},
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
var returnCode = '';
if (record.json.allowedAction_prevStage) {
if (record.json.allowedAction_prevStage && !TYPO3.settings.Workspaces.allView === '1') {
var prevButton = new Ext.grid.ActionColumn(TYPO3.Workspaces.Configuration.SendToPrevStageButton);
returnCode += prevButton.renderer(1, metaData, record, rowIndex, 1, store);
} else {
returnCode += "<span class=\"t3-icon t3-icon-empty t3-icon-empty-empty\">&nbsp;</span>";
}
returnCode += record.json.label_Stage;
if (record.json.allowedAction_nextStage) {
if (record.json.allowedAction_nextStage && !TYPO3.settings.Workspaces.allView === '1') {
var nextButton = new Ext.grid.ActionColumn(TYPO3.Workspaces.Configuration.SendToNextStageButton);
returnCode += nextButton.renderer(2, metaData, record, rowIndex, 2, store);
} else {
......
header: TYPO3.lang["column.actions"],
width: 70,
hideable: false,
hidden: (TYPO3.settings.Workspaces.allView === '1'),
menuDisabled: true,
items: [
{
......
width: 18,
menuDisabled: true,
sortable: false,
hidden: (TYPO3.settings.Workspaces.allView === '1'),
items: [
{
iconCls:'t3-icon t3-icon-actions t3-icon-actions-version t3-icon-version-swap-workspace'
(2-2/2)