From 13445e455842ff7ef037ed536c47ecd90234b868 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jun 26 2020 18:12:11 +0000 Subject: Update search to match all rows - Previously, the index of matching rows was set to be greater that one, as consequence the first row was always displayed no matter what the search pattern was. This update corrects the index initial value so all rows be considered in the search. --- diff --git a/assets/js/script.min.js b/assets/js/script.min.js index 575b9ae..4aaacb6 100644 --- a/assets/js/script.min.js +++ b/assets/js/script.min.js @@ -1 +1 @@ -function myFunction(){for(var e=document.getElementById("myInput").value.toUpperCase(),t=document.getElementById("myTable").tBodies[0].getElementsByTagName("tr"),n=1;n-1&&(t[n].style.display="")}} \ No newline at end of file +function myFunction(){for(var e=document.getElementById("myInput").value.toUpperCase(),t=document.getElementById("myTable").tBodies[0].getElementsByTagName("tr"),n=0;n-1&&(t[n].style.display="")}} \ No newline at end of file