mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
fix where clicking on teaser body text goes to
This commit is contained in:
parent
52ba7203d8
commit
dce17fd094
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
function setupPostTeaserHandler() {
|
function setupPostTeaserHandler() {
|
||||||
document.querySelectorAll('.post_teaser_clickable').forEach(div => {
|
document.querySelectorAll('.post_teaser_clickable').forEach(div => {
|
||||||
div.onclick = function() {
|
div.onclick = function() {
|
||||||
const firstAnchor = this.parentElement.querySelector('a');
|
const firstAnchor = this.parentElement.querySelector('h3 a');
|
||||||
if (firstAnchor) {
|
if (firstAnchor) {
|
||||||
window.location.href = firstAnchor.href;
|
window.location.href = firstAnchor.href;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue