Skip to content

Entire row in list mode as link instead of just icon and text #721

Answered by rejetto
MikeLBN asked this question in Q&A
Discussion options

You must be logged in to vote

listen the click on the row, and then simulate the click on the link, with this code in Admin-panel > Custom HTML > Html Head

<script>
document.addEventListener('click', ({ target: t }) => {
  if (t.tagName === 'LI' && t.closest('ul.dir'))
      t.querySelector('a')?.click()
})
</script>

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@PH5HP
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@MikeLBN
Comment options

@PH5HP
Comment options

Answer selected by MikeLBN
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants