Follow-up to #16996: CSH tooltip shows for too long time - only hold tip when more...
authorSteffen Kamper <info@sk-typo3.de>
Fri, 21 Jan 2011 21:18:42 +0000 (21:18 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 21 Jan 2011 21:18:42 +0000 (21:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10225 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/js/extjs/contexthelp.js

index 49cb89d..15f5e7b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2011-01-21  Steffen Kamper  <steffen@typo3.org>
 
+       * Follow-up to #16996: CSH tooltip shows for too long time - only hold tip when more info is available
        * Follow-up to #17162: Missing localization in t3lib_tsstyleconfig - add HSC
        * Fixed bug #17190: Make the drag area on the split bars wider than 1px
 
index 42b10a3..e44bb90 100644 (file)
@@ -142,13 +142,17 @@ TYPO3.ContextHelp = function() {
                                                tip.el.on({
                                                        'mouseover': {
                                                                fn: function() {
-                                                                       tip.isMouseOver = true;
+                                                                       if (tip.moreInfo) {
+                                                                               tip.isMouseOver = true;
+                                                                       }
                                                                }
                                                        },
                                                        'mouseout': {
                                                                fn: function() {
-                                                                       tip.isMouseOver = false;
-                                                                       tip.hide.defer(200, tip, []);
+                                                                       if (tip.moreInfo) {
+                                                                               tip.isMouseOver = false;
+                                                                               tip.hide.defer(tip.hideDelay, tip, []);
+                                                                       }
                                                                }
                                                        }
                                                });
@@ -176,7 +180,7 @@ TYPO3.ContextHelp = function() {
                                        }
                                }
                        });
-                       
+
                        /**
                         * Adds a sequence to Ext.TooltTip::showAt so as to increase vertical offset when anchor position is 'botton'
                         * This positions the tip box closer to the target element when the anchor is on the bottom side of the box