Bug #11481 ยป 11481.patch
Resources/Public/JavaScript/actions.js (revision ) | ||
---|---|---|
case 'swap':
|
||
this.runningMassAction = TYPO3.Workspaces.ExtDirectMassActions.publishWorkspace;
|
||
break;
|
||
case 'release':
|
||
case 'discard':
|
||
this.runningMassAction = TYPO3.Workspaces.ExtDirectMassActions.flushWorkspace;
|
||
break;
|
||
}
|
Resources/Public/JavaScript/toolbar.js (revision ) | ||
---|---|---|
case 'swap':
|
||
label = TYPO3.lang["tooltip.swapAll"];
|
||
break;
|
||
case 'release':
|
||
label = TYPO3.lang["tooltip.releaseAll"];
|
||
case 'discard':
|
||
label = TYPO3.lang["tooltip.discardAll"];
|
||
break;
|
||
}
|
||
top.TYPO3.Windows.close('executeMassActionWindow');
|
Resources/Private/Language/locallang.xml (revision ) | ||
---|---|---|
<label index="runMassAction.init">init</label>
|
||
<label index="tooltip.publishAll">Really publish entire workspace?</label>
|
||
<label index="tooltip.swapAll">Really swap entire workspace?</label>
|
||
<label index="tooltip.releaseAll">Really release entire workspace?</label>
|
||
<label index="tooltip.discardAll">Really discard entire workspace?</label>
|
||
<label index="tooltip.affectWholeWorkspace">Please note that this will affect all changes in the current workspace, which may be more than you are currently seeing on your screen.</label>
|
||
<label index="previewLink">Preview Link</label>
|
||
<label index="error.noResponse">The server did not send any response whether the action was successful.</label>
|
||
... | ... | |
<label index="preview.listView">List view</label>
|
||
<label index="preview.livePreview">Live</label>
|
||
<label index="preview.workspacePreview">Workspace</label>
|
||
<label index="label_doaction_publish">Publish</label>
|
||
<label index="label_doaction_swap">Swap</label>
|
||
<label index="label_doaction_discard">Discard</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|
Classes/ExtDirect/MassActionHandler.php (revision ) | ||
---|---|---|
const MAX_RECORDS_TO_PROCESS = 30;
|
||
/**
|
||
* Path to the locallang file
|
||
* @var string
|
||
*/
|
||
private $pathToLocallang = 'LLL:EXT:workspaces/Resources/Private/Language/locallang.xml';
|
||
/**
|
||
* Get list of available mass workspace actions.
|
||
*
|
||
* @param object $parameter
|
||
... | ... | |
if ($currentWorkspace != tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES) {
|
||
$publishAccess = $GLOBALS['BE_USER']->workspacePublishAccess($currentWorkspace);
|
||
if ($publishAccess && !($GLOBALS['BE_USER']->workspaceRec['publish_access'] & 1)) {
|
||
$actions[] = array('action' => 'publish', 'title' => 'Publish' //$GLOBALS['LANG']->getLL('label_doaction_publish'));
|
||
$actions[] = array('action' => 'publish', 'title' => $GLOBALS['LANG']->sL($this->pathToLocallang . ':label_doaction_publish')
|
||
);
|
||
if ($GLOBALS['BE_USER']->workspaceSwapAccess()) {
|
||
$actions[] = array('action' => 'swap', 'title' => 'Swap' //$GLOBALS['LANG']->getLL('label_doaction_swap')
|
||
$actions[] = array('action' => 'swap', 'title' => $GLOBALS['LANG']->sL($this->pathToLocallang . ':label_doaction_swap')
|
||
);
|
||
}
|
||
}
|
||
if ($currentWorkspace !== tx_Workspaces_Service_Workspaces::LIVE_WORKSPACE_ID) {
|
||
$actions[] = array('action' => 'release', 'title' => 'Release' // $GLOBALS['LANG']->getLL('label_doaction_release'));
|
||
$actions[] = array('action' => 'discard', 'title' => $GLOBALS['LANG']->sL($this->pathToLocallang . ':label_doaction_discard')
|
||
);
|
||
}
|
||
}
|