Merge branch 'master' of https://github.com/brkcvn/akaunting into new-plans

This commit is contained in:
Burak Civan
2022-10-14 09:36:06 +03:00
4 changed files with 33 additions and 3 deletions

View File

@ -30,6 +30,14 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
td_item.addEventListener("click", () => {
window.location.href = row_href;
});
// added target blank for click mouse middle button
td_item.addEventListener('mousedown', (event) => {
if (event.button == 1 || event.buttons == 4) {
window.open(row_href, "_blank");
}
});
// added target blank for click mouse middle button
}
}
});