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

@ -1,4 +1,4 @@
FROM node:10.12.0
FROM node:10.13.0
RUN apt-get update && apt-get install -y nasm

View File

@ -7,7 +7,7 @@ fi
VERSION=$1
PKG_DIR=dist/trilium-linux-x64-server
NODE_VERSION=10.12.0
NODE_VERSION=10.13.0
rm -r $PKG_DIR
mkdir $PKG_DIR

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