From 9f1b3cc892bdbbb150d54bac1bbe6356168ed5d3 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 20 Apr 2020 22:38:37 +0200 Subject: [PATCH] note paths widget has context menu too --- src/public/app/services/link.js | 1 + src/public/app/widgets/note_paths.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/public/app/services/link.js b/src/public/app/services/link.js index edae931bc..64ec62956 100644 --- a/src/public/app/services/link.js +++ b/src/public/app/services/link.js @@ -162,6 +162,7 @@ $(document).on('contextmenu', 'a.ck-link-actions__preview', newTabContextMenu); $(document).on('contextmenu', '.note-detail-text a', newTabContextMenu); $(document).on('contextmenu', "a[data-action='note']", newTabContextMenu); $(document).on('contextmenu', ".note-detail-render a", newTabContextMenu); +$(document).on('contextmenu', ".note-paths-widget a", newTabContextMenu); export default { getNotePathFromUrl, diff --git a/src/public/app/widgets/note_paths.js b/src/public/app/widgets/note_paths.js index 73b0695cc..d7bd85d66 100644 --- a/src/public/app/widgets/note_paths.js +++ b/src/public/app/widgets/note_paths.js @@ -84,6 +84,7 @@ export default class NotePathsWidget extends TabAwareWidget { this.$currentPath.append( $("") .attr('href', '#' + curPath) + .attr('data-note-path', curPath) .addClass('no-tooltip-preview') .text(await treeService.getNoteTitle(noteId, parentNoteId)) );