NoteContext => TabContext

This commit is contained in:
zadam
2019-05-08 19:55:24 +02:00
parent db7e083a21
commit bacf163c96
14 changed files with 104 additions and 104 deletions

View File

@@ -98,7 +98,7 @@ function init() {
};
}
function noteContextMenu(e) {
function tabContextMenu(e) {
const $link = $(e.target);
const notePath = getNotePathFromLink($link);
@@ -123,9 +123,9 @@ function noteContextMenu(e) {
});
}
$(document).on('contextmenu', '.note-detail-text a', noteContextMenu);
$(document).on('contextmenu', "a[data-action='note']", noteContextMenu);
$(document).on('contextmenu', ".note-detail-render a", noteContextMenu);
$(document).on('contextmenu', '.note-detail-text a', tabContextMenu);
$(document).on('contextmenu', "a[data-action='note']", tabContextMenu);
$(document).on('contextmenu', ".note-detail-render a", tabContextMenu);
// when click on link popup, in case of internal link, just go the the referenced note instead of default behavior
// of opening the link in new window/tab