Browse Source

Slow improvement

Piotr Czajkowski 4 years ago
parent
commit
5451137f15
2 changed files with 2 additions and 2 deletions
  1. 1 1
      html/results.html
  2. 1 1
      static/processResults.js

+ 1 - 1
html/results.html

@@ -27,7 +27,7 @@
 					<th>TM</th>
 				</tr>
 			</thead>
-			<tbody>
+			<tbody id="dataRows">
 			{{range $result := .Results}}
 				{{range $segment := $result.Segments}}
 				<tr style='text-align: left'>

+ 1 - 1
static/processResults.js

@@ -2,7 +2,7 @@ let app = {};
 
 app.filterTable = function(value) {
 	const filter = value.toUpperCase();
-	let table = document.getElementsByTagName("tbody")[0];
+	let table = document.getElementById("dataRows");
 	let tr = table.getElementsByTagName("tr");
 
 	for (let i = 0; i < tr.length; i++) {