[BUGFIX] Change tooltip for page tree area toggle button 26/38226/3
authorJan Helke <typo3@helke.de>
Thu, 26 Mar 2015 09:32:33 +0000 (10:32 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 26 Mar 2015 18:32:00 +0000 (19:32 +0100)
This patch adds a new tooltip to the button to toggle the tree area.
It also chenges the tooltip for the drag area, because the action did
not affact the "tree" itself but the "tree area".

Resolves: #66037
Releases: master
Change-Id: I196edd5cef14bb9bb10f87412914537ddb787b9f
Reviewed-on: http://review.typo3.org/38226
Reviewed-by: Cedric Ziel <cedric@cedric-ziel.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/Controller/BackendController.php
typo3/sysext/backend/Resources/Public/JavaScript/extjs/viewport.js
typo3/sysext/backend/Resources/Public/JavaScript/extjs/viewportConfiguration.js
typo3/sysext/lang/locallang_misc.xlf

index 34f5724..115f299 100644 (file)
@@ -463,6 +463,7 @@ class BackendController {
                        'viewPort' => array(
                                'tooltipModuleMenuSplit',
                                'tooltipNavigationContainerSplitDrag',
+                               'tooltipNavigationContainerSplitClick',
                                'tooltipDebugPanelSplitDrag'
                        )
                );
index 3cdbda3..a86a501 100644 (file)
@@ -37,6 +37,7 @@ Ext.override(Ext.layout.BorderLayout.SplitRegion, {
                        });
                        this.miniSplitEl.addClassOnOver('x-layout-mini-over');
                        this.miniSplitEl.on('click', this.onCollapseClick, this, {stopEvent:true});
+                       this.miniSplitEl.dom.title = this.collapsible ? this.collapsibleSplitClickTip : this.splitTip;
                }
 
                var s = this.splitSettings[ps];
index ab98890..d150799 100644 (file)
@@ -121,6 +121,7 @@ TYPO3.Viewport.configuration = {
                                        collapseMode: 'mini',
                                        useSplitTips: true,
                                        collapsibleSplitTip: top.TYPO3.LLL.viewPort.tooltipNavigationContainerSplitDrag,
+                                       collapsibleSplitClickTip: top.TYPO3.LLL.viewPort.tooltipNavigationContainerSplitClick,
                                        hideCollapseTool: true,
                                        hidden: true,
                                        border: false,
index ad7fe01..134e80a 100644 (file)
                                <source>Drag to resize the Modules Menu</source>
                        </trans-unit>
                        <trans-unit id="viewPort_tooltipNavigationContainerSplitDrag" xml:space="preserve">
-                               <source>Drag to resize or double click to collapse the tree</source>
+                               <source>Drag to resize or double click to collapse the page tree area</source>
+                       </trans-unit>
+                       <trans-unit id="viewPort_tooltipNavigationContainerSplitClick" xml:space="preserve">
+                               <source>Click to toggle the page tree area</source>
                        </trans-unit>
                        <trans-unit id="viewPort_tooltipDebugPanelSplitDrag" xml:space="preserve">
                                <source>Drag to resize or click to collapse the Debug Panel.</source>