c4b624d0e2d2a78be9808dc4f0dd9d415c45eb4e chmalee Mon Jul 1 09:29:06 2024 -0700 Remove informational message on all tooltips cause it is annoying, refs #34007 diff --git src/hg/js/utils.js src/hg/js/utils.js index 94aab6a..d2a0bfa 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -4048,56 +4048,50 @@ return; } // wait for the mouse to stop moving: if (currTooltipIsDelayed) { mousemoveTimer = setTimeout(mousemoveTimerHelper, 1500, e, this); mousedNewItem = true; } else { mousemoveTimer = setTimeout(mousemoveTimerHelper, 500, e, this); if (!(mouseIsOverPopup(e, this) || mouseIsOverItem(e, this))) { return; } } } -// Add some info text at the bottom of each tooltip: -const infoText = document.createElement("p"); -infoText.style = "margin-bottom: 0"; -infoText.textContent = "Wiggle mouse or press ESC to close this tooltip"; - function showMouseoverText(ev) { /* If a tooltip is not visible, show the tooltip text right away. If a tooltip * is visble, do nothing as the mousemove event helper will re-call us * after hiding the tooltip that is shown */ ev.preventDefault(); let referenceElement = lastMouseoverEle; if (!tooltipIsVisible() && // wiggle mouseovers have special code, don't use these tooltips for those: (typeof mouseOver === "undefined" || !mouseOver.visible)) { let tooltipDivId = "#" + referenceElement.getAttribute("mouseoverid"); let tooltipDiv = $(tooltipDivId)[0]; if (!tooltipDiv) { return; } mouseoverContainer.replaceChildren(); let divCpy = tooltipDiv.cloneNode(true); divCpy.childNodes.forEach(function(n) { mouseoverContainer.appendChild(n); }); - mouseoverContainer.appendChild(infoText); positionMouseover(ev, referenceElement, mouseoverContainer, ev.pageX, ev.pageY); mouseoverContainer.classList.add("isShown"); mouseoverContainer.style.opacity = "1"; mouseoverContainer.style.visibility = "visible"; mouseoverContainer.setAttribute("origItemMouseoverId", referenceElement.getAttribute("mouseoverid")); // some tooltips are special and have a long delay, make sure the container knows // that too let isDelayed = referenceElement.getAttribute("tooltipDelay"); if (isDelayed !== null && isDelayed === "delayed") { mouseoverContainer.setAttribute("isDelayedTooltip", "delayed"); } else { mouseoverContainer.setAttribute("isDelayedTooltip", "normal"); } // Events all get their own unique id but they are tough to keep track of if we