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