fix opening links in attr detail

This commit is contained in:
zadam
2020-08-19 17:59:55 +02:00
parent 5741b380f0
commit 3c224e80ee
4 changed files with 16 additions and 16 deletions

View File

@@ -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 {