mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
fixed switching between note clones
This commit is contained in:
parent
664a87cdd5
commit
550bb77ca9
@ -42,6 +42,9 @@ const link = (function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const linkEl = $(e.target);
|
const linkEl = $(e.target);
|
||||||
|
let notePath = linkEl.attr("note-path");
|
||||||
|
|
||||||
|
if (!notePath) {
|
||||||
const address = linkEl.attr("note-path") ? linkEl.attr("note-path") : linkEl.attr('href');
|
const address = linkEl.attr("note-path") ? linkEl.attr("note-path") : linkEl.attr('href');
|
||||||
|
|
||||||
if (!address) {
|
if (!address) {
|
||||||
@ -54,7 +57,8 @@ const link = (function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const notePath = getNotePathFromLink(address);
|
notePath = getNotePathFromLink(address);
|
||||||
|
}
|
||||||
|
|
||||||
noteTree.activateNode(notePath);
|
noteTree.activateNode(notePath);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user