Fossil SCM
fix usage of variable before declaration, this only works because browsers add some things automatic to the namespace (which might not work outside quirks mode)
Commit
6206191a031e755d5ecf535d6441d60e1e5b1bc65d225b4d14c7e28faecbeba2
Parent
2f0cb4659374a98…
1 file changed
+1
-1
+1
-1
| --- src/quickfilter.js | ||
| +++ src/quickfilter.js | ||
| @@ -7,12 +7,12 @@ | ||
| 7 | 7 | ** filtered (to avoid filtering the header). |
| 8 | 8 | ** |
| 9 | 9 | ** The user can type to filter the table for elements matching the typed text. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | +const quickfilter = document.getElementById('quickfilter'); | |
| 12 | 13 | quickfilter.addEventListener('input', function(){ |
| 13 | - const quickfilter = document.getElementById('quickfilter'); | |
| 14 | 14 | const filterrows = document.querySelectorAll('.filterable tbody tr'); |
| 15 | 15 | const filter = quickfilter.value.toLowerCase().trim(); |
| 16 | 16 | for(row of filterrows){ |
| 17 | 17 | const orig = row.innerHTML; |
| 18 | 18 | const cleaned = orig.replaceAll("<mark>", "").replaceAll("</mark>", ""); |
| 19 | 19 |
| --- src/quickfilter.js | |
| +++ src/quickfilter.js | |
| @@ -7,12 +7,12 @@ | |
| 7 | ** filtered (to avoid filtering the header). |
| 8 | ** |
| 9 | ** The user can type to filter the table for elements matching the typed text. |
| 10 | */ |
| 11 | |
| 12 | quickfilter.addEventListener('input', function(){ |
| 13 | const quickfilter = document.getElementById('quickfilter'); |
| 14 | const filterrows = document.querySelectorAll('.filterable tbody tr'); |
| 15 | const filter = quickfilter.value.toLowerCase().trim(); |
| 16 | for(row of filterrows){ |
| 17 | const orig = row.innerHTML; |
| 18 | const cleaned = orig.replaceAll("<mark>", "").replaceAll("</mark>", ""); |
| 19 |
| --- src/quickfilter.js | |
| +++ src/quickfilter.js | |
| @@ -7,12 +7,12 @@ | |
| 7 | ** filtered (to avoid filtering the header). |
| 8 | ** |
| 9 | ** The user can type to filter the table for elements matching the typed text. |
| 10 | */ |
| 11 | |
| 12 | const quickfilter = document.getElementById('quickfilter'); |
| 13 | quickfilter.addEventListener('input', function(){ |
| 14 | const filterrows = document.querySelectorAll('.filterable tbody tr'); |
| 15 | const filter = quickfilter.value.toLowerCase().trim(); |
| 16 | for(row of filterrows){ |
| 17 | const orig = row.innerHTML; |
| 18 | const cleaned = orig.replaceAll("<mark>", "").replaceAll("</mark>", ""); |
| 19 |