mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix closing of tooltips
This commit is contained in:
parent
064a11d872
commit
225e893461
@ -1452,7 +1452,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h4 class="name" id="getActiveNotePath"><span class="type-signature"></span>getActiveNotePath<span class="signature">()</span><span class="type-signature"> → {string}</span></h4>
|
<h4 class="name" id="getActiveNotePath"><span class="type-signature"></span>getActiveNotePath<span class="signature">()</span><span class="type-signature"> → {Promise.<string>}</span></h4>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1538,7 +1538,7 @@
|
|||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
||||||
<span class="param-type">string</span>
|
<span class="param-type">Promise.<string></span>
|
||||||
|
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
|
@ -264,7 +264,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @method
|
* @method
|
||||||
* @returns {string} returns note path of active note
|
* @returns {Promise<string>} returns note path of active note
|
||||||
*/
|
*/
|
||||||
this.getActiveNotePath = treeService.getActiveNotePath;
|
this.getActiveNotePath = treeService.getActiveNotePath;
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ function setupGlobalTooltip() {
|
|||||||
$(document).on("mouseenter", "a", mouseEnterHandler);
|
$(document).on("mouseenter", "a", mouseEnterHandler);
|
||||||
$(document).on("mouseleave", "a", mouseLeaveHandler);
|
$(document).on("mouseleave", "a", mouseLeaveHandler);
|
||||||
|
|
||||||
// close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
|
// close any note tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
|
||||||
//$(document).on("click", () => $('.tooltip').remove());
|
$(document).on("click", () => $('.note-tooltip').remove());
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupElementTooltip($el) {
|
function setupElementTooltip($el) {
|
||||||
@ -58,7 +58,8 @@ async function mouseEnterHandler() {
|
|||||||
trigger: 'manual',
|
trigger: 'manual',
|
||||||
boundary: 'window',
|
boundary: 'window',
|
||||||
title: html,
|
title: html,
|
||||||
html: true
|
html: true,
|
||||||
|
template: '<div class="tooltip note-tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>'
|
||||||
});
|
});
|
||||||
|
|
||||||
$(this).tooltip('show');
|
$(this).tooltip('show');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user