[BUGFIX] Show tooltips in PageTree again 59/41659/2
authorFrank Nägler <typo3@naegler.net>
Sat, 18 Jul 2015 09:38:23 +0000 (11:38 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sat, 18 Jul 2015 10:05:47 +0000 (12:05 +0200)
This is a bugfix for a regression introduced by removing ExtJS Quicktips.

Resolves: #68320
Related: #68276
Releases: master
Change-Id: Ie6ea576084edfd729b569ec155d69afffff67a49
Reviewed-on: http://review.typo3.org/41659
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/nodeui.js

index d319433..2d60937 100644 (file)
@@ -105,20 +105,28 @@ TYPO3.Components.PageTree.PageTreeNodeUI = Ext.extend(Ext.tree.TreeNodeUI, {
        onTipChange : function(node, tip, title) {
                TYPO3.Components.PageTree.PageTreeNodeUI.superclass.onTipChange.apply(this, arguments);
 
        onTipChange : function(node, tip, title) {
                TYPO3.Components.PageTree.PageTreeNodeUI.superclass.onTipChange.apply(this, arguments);
 
-       if(this.rendered){
-               var hasTitle = Ext.isDefined(title);
-               if(this.iconNode.setAttributeNS){
-                       this.iconNode.setAttributeNS("ext", "qtip", tip);
-               if(hasTitle){
-                       this.iconNode.setAttributeNS("ext", "qtitle", title);
-               }
-               }else{
-                       this.iconNode.setAttribute("ext:qtip", tip);
-               if(hasTitle){
-                       this.iconNode.setAttribute("ext:qtitle", title);
+               if (this.rendered) {
+                       var hasTitle = Ext.isDefined(title);
+                       if (this.iconNode.setAttributeNS) {
+                               this.iconNode.setAttributeNS('ext', 'data-toggle', 'tooltip');
+                               this.iconNode.setAttributeNS('ext', 'data-title', tip);
+                               this.iconNode.setAttributeNS('ext', 'data-html', 'true');
+                               this.iconNode.setAttributeNS('ext', 'data-placement', 'right');
+                               if (hasTitle) {
+                                       this.iconNode.setAttributeNS("ext", "qtitle", title);
+                               }
+                       } else {
+                               this.iconNode.setAttribute("ext:qtip", tip);
+                               this.iconNode.setAttribute('ext:data-toggle', 'tooltip');
+                               this.iconNode.setAttribute('ext:data-title', tip);
+                               this.iconNode.setAttribute('ext:data-html', 'true');
+                               this.iconNode.setAttribute('ext:data-placement', 'right');
+                               if (hasTitle) {
+                                       this.iconNode.setAttribute("ext:qtitle", title);
+                               }
+                       }
+                       TYPO3.jQuery(this.iconNode).tooltip();
                }
                }
-       }
-       }
        },
 
        /**
        },
 
        /**