fix tooltip

This commit is contained in:
azivner 2017-12-17 17:37:19 -05:00
parent 125012cba7
commit f96e38fd13
3 changed files with 6 additions and 4 deletions

View file

@ -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));
}
},

View file

@ -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;

View file

@ -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" };