mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
chore(client/ts): port services/note_list_renderer
This commit is contained in:
@@ -231,14 +231,14 @@ function parseNavigationStateFromUrl(url: string | undefined) {
|
||||
};
|
||||
}
|
||||
|
||||
function goToLink(evt: MouseEvent) {
|
||||
function goToLink(evt: MouseEvent | JQuery.ClickEvent) {
|
||||
const $link = $(evt.target as any).closest("a,.block-link");
|
||||
const hrefLink = $link.attr('href') || $link.attr('data-href');
|
||||
|
||||
return goToLinkExt(evt, hrefLink, $link);
|
||||
}
|
||||
|
||||
function goToLinkExt(evt: MouseEvent, hrefLink: string | undefined, $link: JQuery<HTMLElement>) {
|
||||
function goToLinkExt(evt: MouseEvent | JQuery.ClickEvent, hrefLink: string | undefined, $link: JQuery<HTMLElement>) {
|
||||
if (hrefLink?.startsWith("data:")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user