mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
fixes for tooltip handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user