]> _ Git - fluidbook-html5.git/commitdiff
wait #7013 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Jul 2024 17:33:04 +0000 (19:33 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 19 Jul 2024 17:33:04 +0000 (19:33 +0200)
js/libs/fluidbook/fluidbook.help.js
js/libs/fluidbook/fluidbook.tooltip.js

index 2f1e7975b86271cf4b941e6a441abd302643295c..c09e4015bb513ec1e288765609a9ddc303bb9ee3 100644 (file)
@@ -106,7 +106,7 @@ FluidbookHelp.prototype = {
         // Icons
         help += '<div id="icons">';
 
-        var tooltipSelector = '#horizontalNav li > a[data-tooltip]:visible';
+        var tooltipSelector = '#horizontalNav li > [data-tooltip]:visible';
 
         // When the menu position is inverted, the icon help lines need
         // to be drawn in the reverse order to avoid text/line overlaps
index 46540c0ba6e31e9fa16868364899ff28b37e8e52..083edf4d8c37fa60a543bdf79c22b766d5bc097d 100644 (file)
@@ -24,12 +24,12 @@ FluidbookTooltip.prototype = {
         });
 
 
-        $(document).on(this.fluidbook.input.hoverEvent, 'a[data-tooltip]', function (e) {
+        $(document).on(this.fluidbook.input.hoverEvent, '[data-tooltip]', function (e) {
             $this.type = 'mouse';
             $this.updateMousePosition(e);
             $this.eventTriggered(this);
         });
-        $(document).on('focus', 'a[data-tooltip],a[data-keyboard-tooltip]', function (e) {
+        $(document).on('focus', '[data-tooltip],[data-keyboard-tooltip]', function (e) {
             if ($('body').hasClass('keyboard-navigating')) {
                 $this.type = 'keyboard';
                 var rect = this.getBoundingClientRect();
@@ -37,7 +37,7 @@ FluidbookTooltip.prototype = {
                 $this.eventTriggered(this);
             }
         });
-        $(document).on('blur', 'a[data-tooltip],a[data-keyboard-tooltip]', function (e) {
+        $(document).on('blur', '[data-tooltip],[data-keyboard-tooltip]', function (e) {
             $this.hideTooltip();
         });
         $(document).on(this.fluidbook.input.clickEvent, '[data-tooltip-hide-on-click]', function () {