refactorings in relation map related to noteId handling and storage

This commit is contained in:
azivner
2018-11-14 14:52:05 +01:00
parent 040bb13800
commit a334f08782
3 changed files with 45 additions and 23 deletions

View File

@@ -49,9 +49,12 @@ function setupTooltip() {
}
});
$(document).on("mouseleave", "a", async function() {
$(document).on("mouseleave", "a", function() {
$(this).tooltip('hide');
});
// close any tooltip after click, this fixes the problem that sometimes tooltips remained on the screen
$(document).on("click", () => $('[rel=tooltip]').tooltip("hide"));
}
async function renderTooltip(note, attributes) {