feat: support middle-click on bookmark open buttons
This commit is contained in:
@@ -1650,13 +1650,17 @@
|
||||
button.className = 'bookmark-subpage__messe-link';
|
||||
button.textContent = query;
|
||||
button.title = getTradeFairHoverTitle(row);
|
||||
button.addEventListener('click', () => {
|
||||
const handleOpenTradeFair = () => {
|
||||
const opened = openTradeFairSearch(row, query);
|
||||
if (opened > 0) {
|
||||
button.title = getTradeFairHoverTitle(row);
|
||||
render();
|
||||
}
|
||||
});
|
||||
};
|
||||
button.addEventListener('click', handleOpenTradeFair);
|
||||
if (typeof window.bindMiddleMouseOpen === 'function') {
|
||||
window.bindMiddleMouseOpen(button, handleOpenTradeFair);
|
||||
}
|
||||
linksWrap.appendChild(button);
|
||||
|
||||
if (index < bookmarkQueries.length - 1) {
|
||||
|
||||
Reference in New Issue
Block a user