mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fix opening links in attr detail
This commit is contained in:
@@ -83,9 +83,6 @@ function goToLink(e) {
|
||||
const activeTabContext = appContext.tabManager.getActiveTabContext();
|
||||
activeTabContext.setNote(notePath);
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (e.which === 1) {
|
||||
@@ -95,9 +92,6 @@ function goToLink(e) {
|
||||
window.open(address, '_blank');
|
||||
}
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -132,7 +126,8 @@ function linkContextMenu(e) {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('mousedown', "a", goToLink);
|
||||
$(document).on('click', "a", goToLink);
|
||||
$(document).on('auxclick', "a", goToLink); // to handle middle button
|
||||
$(document).on('contextmenu', 'a', linkContextMenu);
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user