nginx-interactive-index: Make .. work again

This fixes a regression introduced in
77eab2497a, which moved the heading into a
thead and the file listing into a tbody. Therefore, the .. entry is now
the first entry and has been excluded by the rule that previously
excluded the header.
This commit is contained in:
Simon Bruder 2021-08-30 22:09:00 +02:00
parent 2c3e65cf5c
commit 0d9ec3383e
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -64,7 +64,7 @@ document.addEventListener('DOMContentLoaded', () => {
searchField.autofocus = true
document.querySelector('body').insertBefore(searchField, document.querySelector('table'))
const rows = Array.from(document.querySelectorAll('tr:not(:first-child)'))
const rows = Array.from(document.querySelectorAll('tbody tr'))
addZebraStripes(rows)