mirror of
https://github.com/zadam/trilium.git
synced 2025-01-22 15:09:48 +08:00
note paths widget has context menu too
This commit is contained in:
parent
8473f72ec8
commit
9f1b3cc892
2 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,7 @@ $(document).on('contextmenu', 'a.ck-link-actions__preview', newTabContextMenu);
|
||||||
$(document).on('contextmenu', '.note-detail-text a', newTabContextMenu);
|
$(document).on('contextmenu', '.note-detail-text a', newTabContextMenu);
|
||||||
$(document).on('contextmenu', "a[data-action='note']", newTabContextMenu);
|
$(document).on('contextmenu', "a[data-action='note']", newTabContextMenu);
|
||||||
$(document).on('contextmenu', ".note-detail-render a", newTabContextMenu);
|
$(document).on('contextmenu', ".note-detail-render a", newTabContextMenu);
|
||||||
|
$(document).on('contextmenu', ".note-paths-widget a", newTabContextMenu);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getNotePathFromUrl,
|
getNotePathFromUrl,
|
||||||
|
|
|
@ -84,6 +84,7 @@ export default class NotePathsWidget extends TabAwareWidget {
|
||||||
this.$currentPath.append(
|
this.$currentPath.append(
|
||||||
$("<a>")
|
$("<a>")
|
||||||
.attr('href', '#' + curPath)
|
.attr('href', '#' + curPath)
|
||||||
|
.attr('data-note-path', curPath)
|
||||||
.addClass('no-tooltip-preview')
|
.addClass('no-tooltip-preview')
|
||||||
.text(await treeService.getNoteTitle(noteId, parentNoteId))
|
.text(await treeService.getNoteTitle(noteId, parentNoteId))
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue