... | @@ -106,12 +106,7 @@ function bindTableLinks() { |
... | @@ -106,12 +106,7 @@ 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}"]`)
|
|
window.location = dataUrl
|
|
if (delegate) {
|
|
|
|
delegate.click()
|
|
|
|
} else {
|
|
|
|
window.location = dataUrl
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
... | | ... | |