[BUGFIX] Fix title for expand button in workspace module 59/51359/4
authorMona Muzaffar <mona.muzaffar@gmx.de>
Thu, 19 Jan 2017 11:17:57 +0000 (12:17 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 25 Jan 2017 21:34:24 +0000 (22:34 +0100)
Change-Id: I6a17811dd5dbc5ed285b6040fcbe97e94b416b8b
Releases: master
Resolves: #79321
Reviewed-on: https://review.typo3.org/51359
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/workspaces/Resources/Private/Language/locallang.xlf
typo3/sysext/workspaces/Resources/Public/JavaScript/Backend.js

index 56123c5..fa8b13e 100644 (file)
                        <trans-unit id="tooltip.swap">
                                <source>Swap live and workspace versions of record</source>
                        </trans-unit>
+                       <trans-unit id="tooltip.expand">
+                               <source>Expand element and show relations</source>
+                       </trans-unit>
                        <trans-unit id="tooltip.showHistory">
                                <source>Show history of workspace version</source>
                        </trans-unit>
index 10f44de..7b0ca65 100644 (file)
@@ -491,9 +491,8 @@ define([
                        var item = result.data[i],
                                $actions = $('<div />', {class: 'btn-group'}),
                                $integrityIcon = '';
-
                        $actions.append(
-                               Backend.getAction(item.Workspaces_CollectionChildren > 0 && item.Workspaces_CollectionCurrent !== '', 'expand', 'apps-pagetree-collapse').attr('title', TYPO3.lang['tooltip.swap']).attr('data-target', '[data-collection="' + item.Workspaces_CollectionCurrent + '"]').attr('data-toggle', 'collapse'),
+                               Backend.getAction(item.Workspaces_CollectionChildren > 0 && item.Workspaces_CollectionCurrent !== '', 'expand', 'apps-pagetree-collapse').attr('title', TYPO3.lang['tooltip.expand']).attr('data-target', '[data-collection="' + item.Workspaces_CollectionCurrent + '"]').attr('data-toggle', 'collapse'),
                                $('<button />', {class: 'btn btn-default', 'data-action': 'changes', 'data-toggle': 'tooltip', title: TYPO3.lang['tooltip.showChanges']}).append(Backend.getPreRenderedIcon('actions-document-info')),
                                Backend.getAction(item.allowedAction_swap && item.Workspaces_CollectionParent === '', 'swap', 'actions-version-swap-version').attr('title', TYPO3.lang['tooltip.swap']),
                                Backend.getAction(item.allowedAction_view, 'preview', 'actions-version-workspace-preview').attr('title', TYPO3.lang['tooltip.viewElementAction']),