From a28408746071c555bccd79a6c9d3242614aff6c2 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 24 Feb 2021 16:23:35 +0100 Subject: [PATCH] Impact analysis: Use new tooltip API to allow interactions with their hyperlinks --- js/simple_graph.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/simple_graph.js b/js/simple_graph.js index 2e6ca6ba9..1448b714b 100644 --- a/js/simple_graph.js +++ b/js/simple_graph.js @@ -894,9 +894,11 @@ $(function() $( ".popupMenuTarget" ).each(function(){ var sDataId = $(this).attr('data-id'); var sTooltipContent = me._get_tooltip_content(sDataId); - $(this).attr('data-tooltip-content', sTooltipContent); - $(this).attr('data-tooltip-html-enabled', 'true'); - $(this).attr('data-tooltip-hide-delay', '1500'); + $(this).attr('data-tooltip-content', sTooltipContent) + .attr('data-tooltip-html-enabled', 'true') + .attr('data-tooltip-interaction-enabled', 'true') + .attr('data-tooltip-append-to', 'body') + .attr('data-tooltip-hide-delay', '1500'); CombodoTooltip.InitTooltipFromMarkup($(this)); }); },