prefixes are now displayed also in all autocompletes and recent notes

This commit is contained in:
azivner
2017-11-29 22:03:03 -05:00
parent 69f77ac439
commit 8bd76721ad
7 changed files with 36 additions and 38 deletions

View File

@@ -22,8 +22,10 @@ const link = (function() {
return null;
}
function createNoteLink(noteId, noteTitle) {
function createNoteLink(notePath, noteTitle) {
if (!noteTitle) {
const noteId = treeUtils.getNoteIdFromNotePath(notePath);
noteTitle = noteTree.getNoteTitle(noteId);
}
@@ -31,7 +33,7 @@ const link = (function() {
href: 'javascript:',
text: noteTitle
}).attr('action', 'note')
.attr('note-path', noteId);
.attr('note-path', notePath);
return noteLink;
}