mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix tooltip
This commit is contained in:
parent
125012cba7
commit
f96e38fd13
@ -93,9 +93,11 @@ $.ui.autocomplete.filter = (array, terms) => {
|
||||
$(document).tooltip({
|
||||
items: "#note-detail a",
|
||||
content: function(callback) {
|
||||
const noteId = link.getNotePathFromLink($(this).attr("href"));
|
||||
const notePath = link.getNotePathFromLink($(this).attr("href"));
|
||||
|
||||
if (notePath !== null) {
|
||||
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
|
||||
|
||||
if (noteId !== null) {
|
||||
noteEditor.loadNote(noteId).then(note => callback(note.detail.note_text));
|
||||
}
|
||||
},
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
const link = (function() {
|
||||
function getNotePathFromLink(url) {
|
||||
const notePathMatch = /app#([A-Za-z0-9/]+)$/.exec(url);
|
||||
const notePathMatch = /#([A-Za-z0-9/]+)$/.exec(url);
|
||||
|
||||
if (notePathMatch === null) {
|
||||
return null;
|
||||
|
@ -1 +1 @@
|
||||
module.exports = { build_date:"2017-12-16T21:37:48-05:00", build_revision: "ccc7775c7cff5cdfcad1102ec6ca1ab15612c851" };
|
||||
module.exports = { build_date:"2017-12-17T16:57:13-05:00", build_revision: "125012cba779086e526fa763cb0bfde59451fda6" };
|
||||
|
Loading…
x
Reference in New Issue
Block a user