YAFLogo

BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
6 months ago
Hi,

Is it possible to disable the tooltips for touchscreens or at all through the UI on 3.1.8? The default behaviour appears to be to show the tooltip briefly when a link is clicked on before the new page is opened. 

Sorry if this is an obvious question but I couldn't see an option in the admin or host settings. 

Thanks

BWG
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 months ago
There is no setting to turn it off the only way would be to remove the javascript

var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
    tooltipTriggerList.map(function (tooltipTriggerEl) {
        return new bootstrap.Tooltip(tooltipTriggerEl);
    });

I' dont really understand the problem, but i think increasing the default delay to show them would be the best solution.
BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
6 months ago
On mine I've dropped the following code near to the end of the default.aspx to stop the tooltips and popovers on touchscreens. It seems to work ok, but I've not finished testing yet. 


if (('ontouchstart' in window))
{         
            $(function () {
                 $('[data-bs-toggle="tooltip"]').tooltip('dispose');
                $('[data-bs-toggle="popover"]').popover('disable');         
 })
}
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button