[TASK] Show Bootstrap Tooltips in Extension Manager 16/45416/12
authorGianluigi Martino <gmartino27@gmail.com>
Tue, 22 Dec 2015 23:45:58 +0000 (00:45 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Wed, 30 Dec 2015 08:04:43 +0000 (09:04 +0100)
Use Bootstrap Tooltips instead of native tooltips in Extension Manager.

Change-Id: Ic6f2beeb36938d655b1b3defedcdfc688056cd99
Releases: master, 7.6
Resolves: #71553
Reviewed-on: https://review.typo3.org/45416
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/extensionmanager/Classes/ViewHelpers/ConfigureExtensionViewHelper.php
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html
typo3/sysext/extensionmanager/Resources/Public/JavaScript/Main.js

index ea71065..0db03af 100644 (file)
@@ -57,6 +57,8 @@ class ConfigureExtensionViewHelper extends Link\ActionViewHelper
         } elseif ($forceConfiguration) {
             $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
             $content = '<span class="btn btn-default disabled">' . $iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render() . '</span>';
+        } else {
+            $content = '<span title="' . htmlspecialchars($extension['description']) . '">' . $content . '</span>';
         }
 
         return $content;
index 97300d1..f8cce40 100644 (file)
                                <td>
                                        <em:toggleExtensionInstallationState extension="{extension}" />
                                </td>
-                               <f:if condition="{extension.description}">
-                                       <f:then>
-                                               <td title="{extension.description}">
-                                       </f:then>
-                                       <f:else>
-                                               <td>
-                                       </f:else>
-                               </f:if>
+                               <td>
                                        <f:if condition="{extension.ext_icon}">
                                                <img class="ext-icon" src="../{extension.siteRelPath}{extension.ext_icon}" alt="{extension.title}" />
                                        </f:if>
index 80abe12..bbe446d 100644 (file)
@@ -23,9 +23,10 @@ define([
        'nprogress',
        'TYPO3/CMS/Backend/Modal',
        'TYPO3/CMS/Backend/SplitButtons',
+       'TYPO3/CMS/Backend/Tooltip',
        'datatables',
        'TYPO3/CMS/Backend/jquery.clearable'
-], function($, NProgress, Modal, SplitButtons) {
+], function($, NProgress, Modal, SplitButtons, Tooltip) {
 
        /**
         *
@@ -803,6 +804,15 @@ define([
 
                ExtensionManager.Update.initializeEvents();
                ExtensionManager.UploadForm.initializeEvents();
+
+               Tooltip.initialize('#typo3-extension-list [title]', {
+                       delay: {
+                               show: 500,
+                               hide: 100
+                       },
+                       trigger: 'hover',
+                       container: 'body'
+               });
        });
 
        if (typeof TYPO3.ExtensionManager === 'undefined') {