exported links to "named" notes should be preserved upon import

This commit is contained in:
zadam
2022-12-23 23:08:30 +01:00
parent 5ae0a5cf1e
commit 392b89e6dd
6 changed files with 44 additions and 15 deletions

View File

@@ -170,10 +170,15 @@ async function loadReferenceLinkTitle(noteId, $el) {
title = note.isDeleted ? `${note.title} (deleted)` : note.title;
}
$el.addClass(note.getColorClass());
if (note) {
$el.addClass(note.getColorClass());
}
$el.text(title);
$el.prepend($("<span>").addClass(note.getIcon()));
if (note) {
$el.prepend($("<span>").addClass(note.getIcon()));
}
}
$(document).on('click', "a", goToLink);