mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
hide global menu tooltip upon click
This commit is contained in:
parent
9e77a424a4
commit
b68bdc5005
2 changed files with 9 additions and 2 deletions
|
@ -30,7 +30,8 @@ export default class ButtonWidget extends NoteContextAwareWidget {
|
||||||
|
|
||||||
this.$widget.tooltip({
|
this.$widget.tooltip({
|
||||||
html: true,
|
html: true,
|
||||||
title: () => this.settings.title
|
title: () => this.settings.title,
|
||||||
|
trigger: "hover"
|
||||||
});
|
});
|
||||||
|
|
||||||
super.doRender();
|
super.doRender();
|
||||||
|
|
|
@ -96,7 +96,13 @@ export default class GlobalMenuWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
|
|
||||||
this.$widget.find(".global-menu-button").tooltip();
|
const $button = this.$widget.find(".global-menu-button");
|
||||||
|
|
||||||
|
$button.tooltip({
|
||||||
|
trigger: "hover"
|
||||||
|
});
|
||||||
|
|
||||||
|
$button.on("click", () => $button.tooltip("hide"));
|
||||||
|
|
||||||
this.$widget.find(".show-about-dialog-button").on('click',
|
this.$widget.find(".show-about-dialog-button").on('click',
|
||||||
() => import("../../dialogs/about.js").then(d => d.showDialog()));
|
() => import("../../dialogs/about.js").then(d => d.showDialog()));
|
||||||
|
|
Loading…
Reference in a new issue