mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
middle click can now open links in new tab (and close tab)
This commit is contained in:
@@ -46,7 +46,8 @@ function initNoteAutocomplete($el, options) {
|
||||
.prop("title", "Show recent notes");
|
||||
|
||||
const $goToSelectedNoteButton = $("<a>")
|
||||
.addClass("input-group-text go-to-selected-note-button jam jam-arrow-right");
|
||||
.addClass("input-group-text go-to-selected-note-button jam jam-arrow-right")
|
||||
.attr("data-action", "note");
|
||||
|
||||
const $sideButtons = $("<div>")
|
||||
.addClass("input-group-append")
|
||||
@@ -69,14 +70,6 @@ function initNoteAutocomplete($el, options) {
|
||||
return false;
|
||||
});
|
||||
|
||||
$goToSelectedNoteButton.click(() => {
|
||||
if ($el.hasClass("disabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
treeService.activateNote($el.getSelectedPath());
|
||||
});
|
||||
|
||||
$el.autocomplete({
|
||||
appendTo: document.querySelector('body'),
|
||||
hint: false,
|
||||
|
||||
Reference in New Issue
Block a user