... | ... | @@ -106,15 +106,10 @@ function bindTableLinks() { |
|
|
const dataUrl = target.getAttribute("data-url")
|
|
|
const selection = window.getSelection().toString()
|
|
|
if (selection.length === 0 && dataUrl) {
|
|
|
const delegate = target.querySelector(`[href="${dataUrl}"]`)
|
|
|
if (delegate) {
|
|
|
delegate.click()
|
|
|
} else {
|
|
|
window.location = dataUrl
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
const tables = [...document.getElementsByTagName("table")]
|
|
|
tables.forEach(
|
... | ... | |