fixes for tooltip handling

This commit is contained in:
azivner
2018-11-18 20:57:52 +01:00
parent 8299524682
commit 62a250a7fc
3 changed files with 7 additions and 3 deletions

View File

@@ -41,6 +41,10 @@ function setupTooltip() {
if ($(this).is(":hover")) {
$(this).tooltip({
delay: {"show": 300, "hide": 100},
container: 'body',
placement: 'auto',
trigger: 'manual',
boundariesElement: 'window',
title: html,
html: true
});
@@ -50,7 +54,7 @@ function setupTooltip() {
});
$(document).on("mouseleave", "a", function() {
$(this).tooltip('hide');
$(this).tooltip('dispose');
});
// close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen