From 0d9ec3383eb2516437536762515c810745a531e9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 30 Aug 2021 22:09:00 +0200 Subject: [PATCH] nginx-interactive-index: Make .. work again This fixes a regression introduced in 77eab2497adc45f53db0ede677a854e2dc4912ec, 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. --- modules/nginx-interactive-index/listing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nginx-interactive-index/listing.js b/modules/nginx-interactive-index/listing.js index ea7f8de..b9583bc 100644 --- a/modules/nginx-interactive-index/listing.js +++ b/modules/nginx-interactive-index/listing.js @@ -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)